Raised This Month: $ Target: $400
 0% 

pev_flTimeStepSound problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-06-2007 , 15:39   pev_flTimeStepSound problem
Reply With Quote #1

i use this coding to make only cts have footsteps, but it still takes away ct's footsteps.

heres what i got:

Code:
public fwdPlayerPreThink(id)
{
     if(!is_user_alive(id))
          return FMRES_IGNORED;
     
     static stepSound;
     if(get_user_team(id) == 2)
     {
          stepSound = 400;
     }
     else
     {
          stepSound = 999;
     }
     set_pev(id, pev_flTimeStepSound, stepSound);
     return FMRES_IGNORED;
}
but it doesnt seem to work.

ive tried a lot of stuff to make it work but it wont.

can someone give me a script of how they would do it?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-06-2007 , 15:48   Re: pev_flTimeStepSound problem
Reply With Quote #2

I'd do it like so:
Code:
public fwdPlayerPreThink(id) {      if(is_user_alive(id) && get_user_team(id) != 2)           set_pev(id, pev_flTimeStepSound, 999) }
If this wouldn't work then i'd say that your public function is never called or something else...
VEN is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-06-2007 , 16:22   Re: pev_flTimeStepSound problem
Reply With Quote #3

is the pev_flTimeStepSound defaulted at every prethink?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-07-2007 , 09:46   Re: pev_flTimeStepSound problem
Reply With Quote #4

Speaking in your terms - yes.
VEN is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-11-2007 , 16:06   Re: pev_flTimeStepSound problem
Reply With Quote #5

so then it wouldnt be necessary to set it at 400 if it will default back to 400 on its own?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-12-2007 , 02:01   Re: pev_flTimeStepSound problem
Reply With Quote #6

Right.
VEN is offline
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 01:17.


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