AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Class : Chinese Zombie 1.2.2 updated (Advanced Leap zombie) (https://forums.alliedmods.net/showthread.php?t=86051)

YKH =] 02-20-2009 01:27

[ZP] Class : Chinese Zombie 1.2.2 updated (Advanced Leap zombie)
 
1 Attachment(s)
Description :

I'm looking Fry's long jump zombie class plugin, it cannot control Long jump speed and height. (old version)

Now this plugin are fixed all the function. You may allow to use "cvar" to set the speed & height!

Also i add one more delay function in it. It is hopeless to see long jump zombie "Godlike Jumping" :D

ATTENTION :

To use the leap, you must duck on the ground and press E

You can also use this model in your server

http://www.fpsbanana.com/skins/51774

have fun :D

Cvars :
Quote:

zp_zclass_leap_force "400" - How far zombie will jump
zp_zclass_leap_height "275" - How heigh zombie will jump
zp_leap_cooldown "2.0" - How many time delay zombie leap

Credits :
MeRcyLeZZ - For his leap perfect code :)
triplebug - Chinese zombie idea =]

change log :
Quote:

1.0 : base version
1.1 : fixed small bug
1.2 : fixed nemesis using leap bug
1.2.1 : change code
1.2.2 : change plugin name : chinese zombie

pro_on_0 02-20-2009 03:51

Re: [ZP] Class : Hunter Leap Zombie by YKH =]
 
Fly's long jump zombie class plugin CAN control Long jump speed and height.But no the time to delay zombie leap ...

triplebug 02-20-2009 04:24

Re: [ZP] Class : Hunter Leap Zombie by YKH =]
 
Thanks! The leap still available when someone turns into nemesis? (Not nemesis default leap)

YKH =] 02-20-2009 05:15

Re: [ZP] Class : Hunter Leap Zombie by YKH =]
 
Fry plx listen up

Your plugin CANNOT contorl speed & height by the cvar

YOUR fm_give_item(player, "item_longjump") included the deafult speed & height by the fakemeta module and you cvar are useless

AND YOUR "allowed_LongJump(id)" is useless. The plugin never check that code and your cvar also are useless

Also, These code ARE NOT same as you and check your eyes!

On top of that , My code is without fm_give_item(player, "item_longjump")<- can't control speed & height

Why don't you check it before posting?


BTW I change fly to fry in my post

Fry! 02-20-2009 05:24

Re: [ZP] Class : Hunter Leap Zombie 1.2 update (Not as same as Fry's)
 
oh you think you are so smart that you took my plugin and changed it then why there is allowed_LongJump as mine? Cuz you didn't made it from start just edited...

You probably don't understand it but cvars works, cuz I have test them when I set to higher numbers...

YKH =] 02-20-2009 05:31

Re: [ZP] Class : Hunter Leap Zombie 1.2 update (Not as same as Fry's)
 
sadly when i set a low number it doesn't works

Some words is taken my you but more and more codes is coded my me & taken by MeRcyLeZZ


RE : triplebug

Fixed bug what are you talking for, thank you

G-Dog 02-20-2009 06:17

Re: [ZP] Class : Hunter Leap Zombie 1.2 update (Not as same as Fry's)
 
you should recheck your update, the way the allowed_LongJump function is, the zombie will only have leap if they have that class and are nemesis. Need to change
PHP Code:

    if (!zp_get_user_zombie(id))
        return 
false

    
if (!zp_get_user_nemesis(id))
        return 
false 

to
PHP Code:

    if (!zp_get_user_zombie(id) && !zp_get_user_nemesis(id))
        return 
false 

@Fry just looked at your code and your both emulating long jump(all the stuff in prethink)and also giving the engine based uncontrolled long jump(the fm_give_item(player, "item_longjump")) I would suggest for you to remove the fm_give_item part and that should basically fix what he was talking about your version's cvars not working properly.

LoLer 02-20-2009 07:01

Re: [ZP] Class : Hunter Leap Zombie 1.2 update (Not as same as Fry's)
 
would be good if in the air after the leap,you touch someone,they turn into a zombie

triplebug 02-20-2009 07:02

Re: [ZP] Class : Hunter Leap Zombie 1.2 update (Not as same as Fry's)
 
Thanks for the fix and G-Dog's optimize. I always wanted simple and bugless plugin on my server, for my low bandwidth sake.

+k after 24hrs, used up on suggestion section ROFL.

YKH =] 02-20-2009 07:04

Re: [ZP] Class : Hunter Leap Zombie 1.2 update (Not as same as Fry's)
 
Quote:

Originally Posted by G-Dog (Post 765160)
you should recheck your update, the way the allowed_LongJump function is, the zombie will only have leap if they have that class and are nemesis. Need to change
PHP Code:

    if (!zp_get_user_zombie(id))
        return 
false

    
if (!zp_get_user_nemesis(id))
        return 
false 

to
PHP Code:

    if (!zp_get_user_zombie(id) && !zp_get_user_nemesis(id))
        return 
false 

@Fry just looked at your code and your both emulating long jump(all the stuff in prethink)and also giving the engine based uncontrolled long jump(the fm_give_item(player, "item_longjump")) I would suggest for you to remove the fm_give_item part and that should basically fix what he was talking about your version's cvars not working properly.

change it =] thank you


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

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