SharkMod

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

SharkMod

Post by greenie »

SHARKMOD Version 0.3

Note: Many of the things on the to-do list are already in the works. I figured I'd release what I have now so those that requested this mod could have a working plugin immediately.


DESCRIPTION:
After enabling this plugin, all but one randomely chosen player will be moved to the CT team. All players are locked to their team. The lone terrorist(the "shark") will have increased speed, noclip, increased HP, but not be able to use anything other than a knife.

The shark's objective is to kill the CTs. If a CT manages to kill the shark, that player will become to new shark next round. If the shark manages to stay alive for several consequtive rounds (admin-configurable), a new shark will be randomely chosen.

An admin may also manually select the next shark through a menu.


REQUIREMENTS
AMXX 1.70+
Fun module
Fakemeta module


CVARS:
sharkmod_maxhealth <#> -- The shark's initial health. (default: 255)
sharkmod_speed <#> -- Speed at which the shark travels (default: 640) Note: normal knife speed is 320 and is capped at 1000
sharkmod_maxrounds <#> -- Max consecutive rounds a player can be the shark (default: 3)
sharkmod_timer <#> -- Time after enabling that sharkmod begins (default: 10)
sharkmod_custommodel <0/1> -- 1 to use your custom model, 0 otherwise (default: 0)


COMMANDS:
amx_shark <0/1> -- 1 to enable sharkmod, 0 to disable
amx_sharkmenu -- Manually select the shark for the next round


CUSTOM MODELS:
If you want to use a custom model, the default target the plugin uses is:"models/player/shark/shark.mdl"
Note: I couldn't find a shark-like model, I used "Jason" from Friday the 13th, because it looked cool . If you find a model you think works well, let me know .


TO DO / IDEAS:
Make it work with other games
Emit shark sounds from shark when +use button is pressed.
Add more options to menu.
Allow multiple sharks.
Leave spectators out of the game.
Health changes according to number of opponents
Make shark's attacks stronger.


CREDIT:
bmann_420 - For posting working team-locking code to build from
purple_pixie - For his post on FM_Touch forwarding

get plugin
get source
Post Reply

Return to “Admin Commands”