Raised This Month: $ Target: $400
 0% 

Zombie addition


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JCobra
Senior Member
Join Date: Mar 2006
Location: Canada
Old 01-26-2007 , 11:41   Zombie addition
Reply With Quote #1

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 )
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...
__________________
User has abandoned this account.

Last edited by JCobra; 01-26-2007 at 11:44.
JCobra is offline
Send a message via AIM to JCobra
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-26-2007 , 13:38   Re: Zombie addition
Reply With Quote #2

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) }
[ --<-@ ] Black Rose is offline
JCobra
Senior Member
Join Date: Mar 2006
Location: Canada
Old 01-26-2007 , 16:04   Re: Zombie addition
Reply With Quote #3

Thanks +Karma (Soon as I can give karma again )

I just screwed up on the id's + indexes

__________________
User has abandoned this account.
JCobra is offline
Send a message via AIM to JCobra
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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