Raised This Month: $ Target: $400
 0% 

mp_ and sv_ in set_pev


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tarre
Junior Member
Join Date: May 2006
Old 05-31-2006 , 13:17   mp_ and sv_ in set_pev
Reply With Quote #1

hmm why cant i put mp_ commands in set_pev? like


Code:
set_pev(i, pev_gravity, 600.0 / get_cvar_num("sv_gravity")  /* ? */) set_pev(i, pev_startmoney, 16000.0 / get_cvar_num("mp_startmoney")  /* ? */)
tarre is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 05-31-2006 , 13:26  
Reply With Quote #2

theres no pev_startmoney
maybe its set_cvar_num() that u want?

and i think u should use this instead of get_cvar_num(), though it doesnt give a warning from it..
Code:
get_cvar_float("sv_gravity")

EDIT: ehh, of course not set_cvar_num(), how bout this?
Code:
new money = 16000 / get_cvar_num("mp_startmoney") cs_set_user_money(i, money, 1)
__________________
plop
p3tsin is offline
tarre
Junior Member
Join Date: May 2006
Old 05-31-2006 , 13:46  
Reply With Quote #3

thx but,, hmm :S startmoney was just an example, i wont to make mp_footsteps 0 but i getting errors all sv_ commands working but not mp_
tarre is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 05-31-2006 , 14:29  
Reply With Quote #4

if u want silent footsteps for all, just use
Code:
set_cvar_num("mp_footsteps", 0)

if only for some of them:
Code:
set_user_footsteps(id, 1) //sets silent footsteps set_user_footsteps(id, 0) //sets footsteps back to normal
__________________
plop
p3tsin is offline
tarre
Junior Member
Join Date: May 2006
Old 06-01-2006 , 02:49  
Reply With Quote #5

thx
tarre 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 16:26.


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