AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   SharkMod (https://forums.alliedmods.net/showthread.php?t=65320)

edeloa 01-05-2008 21:48

SharkMod
 
1 Attachment(s)
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 8). If you find a model you think works well, let me know :wink:.


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


chris 01-05-2008 22:18

Re: SharkMod
 
Sounds fun, I'll try it out now. For the custom model is it run through Half-Life?

kp_uparrow 01-05-2008 22:22

Re: SharkMod
 
is this juggernaut or popcorn?
and ill bet the server will svc_bad when over 16 players when you set models

TBoZ 01-05-2008 22:40

Re: SharkMod
 
L 01/05/2008 - 23:37:21: [AMXX] Displaying debug trace (plugin "sharkmod.amxx")
L 01/05/2008 - 23:37:21: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 01/05/2008 - 23:37:21: [AMXX] [0] 22759.attach::plugin_precache (line 125)

edeloa 01-05-2008 23:23

Re: SharkMod
 
Quote:

Originally Posted by TBoZ (Post 570727)
L 01/05/2008 - 23:37:21: [AMXX] Displaying debug trace (plugin "sharkmod.amxx")
L 01/05/2008 - 23:37:21: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 01/05/2008 - 23:37:21: [AMXX] [0] 22759.attach::plugin_precache (line 125)

Don't know how I could have possibly missed that. Thanks for catching that ... SMA has been updated.

edeloa 01-05-2008 23:33

Re: SharkMod
 
Quote:

Originally Posted by kp_uparrow (Post 570715)
is this juggernaut or popcorn?
and ill bet the server will svc_bad when over 16 players when you set models

It's not juggernaut, but after looking at popcorn, it does share a similar 1-vs-all concept. You'll find it extremely different though.

vittu 01-06-2008 01:09

Re: SharkMod
 
http://forums.alliedmods.net/attachm...4&d=1138066509

mahooo60 01-06-2008 01:17

Re: SharkMod
 
ahhhh i am tired to see those plugins which does the same.only the plugname is different.example:hidn&seek is the same mod.1will be choosen,only knife,next round the killer will be choosen as blabla..!LOL

Bojangles 01-06-2008 03:44

Re: SharkMod
 
Thank you edeloa for making this. I will test it out as soon as I can. I will come back with feed back.


Quick question and this might be answered later but... So this works like a mod. It is on or off. Not like amx_noclip where it sets it to a single entity. It sets it to the whole server?

Bojangles 01-06-2008 03:50

Re: SharkMod
 
Quote:

Originally Posted by vittu (Post 570757)



If we could get whatever that model is and shrink it down that would look pretty sweet in my opinion.


As for the sound... I will look around see what I can find.


All times are GMT -4. The time now is 07:46.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.