AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP 5.0] Smoker (https://forums.alliedmods.net/showthread.php?t=185472)

Y060N 05-18-2012 00:39

[ZP 5.0] Smoker
 
2 Attachment(s)
http://i.imgur.com/V6pm3.png




Description:
This class is made in the image of L4D2 smoker.
He can "hook" enemies and reel them in, while the victim cannot move.
In my version, there is break damage included so that you can set the damage needed in order to "break" the tongue of the zombie.
There is also a stun that happens to the human, so they cannot move after they have been grabbed with the smokers tongue.

Main features:
- Hook humans
- Reel them in
- Break when damaged
- Stun humans

CVars:
zp_smoker_stun - Amount of seconds that human is stunned for after he is grabbed with Smoker's tongue (float).
zp_smoker_break - Amount of damage needed to break the smokers hold on a human.

Requirements:
- AMXmodX
- FakeMeta
- Hamsandwich
- Engine module
- ZP 5.0

Credits:
- Special thanks to yang, for his Scorpion SuperHero class.

Install:
- Click "Get Source" (or compile locally)
- Put the .amxx file inside /addons/amxmodx/plugins
- Put the respective models/sound in the models and sound folder (inside cstrike)
- Write "zp50_zombie_smoker.amxx" into your plugins-zp50_ammopacks.ini file

gogicaa 05-18-2012 06:38

Re: [ZP 5.0] Smoker
 
Thanks for posting .
i'll check code later :)

JoKeR LauGh 05-18-2012 08:26

Re: [ZP 5.0] Smoker
 
Sounds cool! thanks~ ;)

H.RED.ZONE 05-18-2012 09:53

Re: [ZP 5.0] Smoker
 
Well coded zombie class. Just one thing.
Code:

public zp_fw_core_spawn_post(id)
{
    MarkUserAlive(id)
}

No need for

Code:

public zp_fw_core_spawn_post(id)
{
    if(is_user_alive(id)) {
    MarkUserAlive(id)
    }
}

If you set bits correctly you won't need to check that.

jc980 05-18-2012 11:23

Re: [ZP 5.0] Smoker
 
Isn't advertising your server against the rules?

The IP is on the image.

H.RED.ZONE 05-18-2012 11:37

Re: [ZP 5.0] Smoker
 
True but i think he can set "servers running this plugin" and then add a link to his server.

Y060N 05-18-2012 13:24

Re: [ZP 5.0] Smoker
 
Yeah I ran into some problems when I didn't check if the user was alive, and since that forward isn't called all the time I figured it wouldn't hurt to try it.

H.RED.ZONE 05-18-2012 13:48

Re: [ZP 5.0] Smoker
 
MarkUserAlive is called when player is spawned and we clear it when he dies thats all for alive. And if we are checking connected we check when he is put in server and when he disconnect.

Quote:

Originally Posted by Y060N (Post 1711540)
Yes I know what my code does RED.ZONE.

And yet you didn't fix it.

Y060N 05-18-2012 14:08

Re: [ZP 5.0] Smoker
 
Yes I know what my code does RED.ZONE, you don't need to tell me what the code in my own plugin does...I already said - it was needed because I was running into errors with other plugins I have so please stop spamming my thread.

wicho 05-18-2012 17:51

Re: [ZP 5.0] Smoker
 
thx dude very cool..


All times are GMT -4. The time now is 16:42.

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