AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Zombie addition (https://forums.alliedmods.net/showthread.php?t=50438)

JCobra 01-26-2007 11:41

Zombie addition
 
Code:
public if_zombie(id){     new model[32]     get_user_info(id, "model", model, 31);     if (contain ( model[32], zombies[31] );         set_user_footsteps ( id, [ set = 1 ] );         set_user_gravity ( id, Float:gravity = 1.0 ); } public if_human(id){     new model[32]     get_user_info(id, "model", model, 31);     if (contain ( model[32], human[31] );         set_user_rendering(id, kRenderFxGlowShell,255,0,0,kRenderNormal,25); } public tasks(){     set_task(0.5,"if_human");     set_task(1.0,"if_zombie");     }






I have no idea, what I'm doing wrong... But it's probably something very stupid...

Basically, for the zombie mod, me and my friend are making... I want to make it so zombies have silent foot steps (More sneaky :D)
and have reduced gravity. (These are the bots)

While people (the non-bots) will glow red so that other players will know before hand that it is a player. (Reduced light on map making it harder to see)

Any help would be appreciated...

[ --<-@ ] Black Rose 01-26-2007 13:38

Re: Zombie addition
 
I dunno really what you wanna do, but I'll try.
Code:
public tasks(id) {     get_user_info(id, "model", model, 31);         if ( contain(model, "human") )         set_user_rendering(id, kRenderFxGlowShell,255,0,0,kRenderNormal,25);             else if ( contain(model, "zombie") ) {         set_user_footsteps(id, 1);         set_user_gravity(id, 1.0); // 1.0 is default gravity ( 800 )     } }
If you really need the delay:
Code:
public if_human(id)     set_user_rendering(id, kRenderFxGlowShell,255,0,0,kRenderNormal,25); public if_zombie(id) {     set_user_footsteps(id, 1);     set_user_gravity(id, 1.0); // 1.0 is default gravity ( 800 ) } public tasks(id) {     get_user_info(id, "model", model, 31);         if ( contain(model, "human") )         set_task(0.5, "if_human", id)             else if ( contain(model, "zombie") )         set_task(1.0, "if_zombie", id) }

JCobra 01-26-2007 16:04

Re: Zombie addition
 
Thanks +Karma (Soon as I can give karma again :P)

I just screwed up on the id's + indexes

:D


All times are GMT -4. The time now is 22:30.

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