AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [help] zombie max speed (https://forums.alliedmods.net/showthread.php?t=225354)

tkss20 09-03-2013 15:02

[help] zombie max speed
 
PHP Code:

    if (g_iszombie[id])
    {
        
set_pev(idpev_maxspeedxSpeed[id][Speed])
    } 

why it dosent works

Baws 09-05-2013 19:36

Re: [help] zombie max speed
 
Um if you would like to put all the code it will be helpful :]

Baws 09-06-2013 20:11

Re: [help] zombie max speed
 
As you can see here:
Code:
new const zclass_name[] = { "Gravity Zombie" } // name new const zclass_info[] = { "Low Grav -HP" } // description new const zclass_model[] = { "zombie_source" } // model new const zclass_clawmodel[] = { "v_knife_zombie.mdl" } // claw model const zclass_health = 800 // health const zclass_speed = 200 // speed const Float:zclass_gravity = 0.5 // gravity const Float:zclass_knockback = 0.6 // knockback

It's already there. You just need to put the speed you want (Number) and put this:
Code:
g_zclassid1 = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
And you will be done. It's simple buddy. Or there's something different?


All times are GMT -4. The time now is 19:05.

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