Raised This Month: $12 Target: $400
 3% 

RPG mod by Sylwester


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MmikiM
Senior Member
Join Date: Nov 2006
Location: Poland
Old 06-22-2009 , 11:13   Re: RPG mod by Sylwester
Reply With Quote #11

PHP Code:
public player_PreThink(id){
static 
Float:ftmpFloat:angle[3], sumss2
if(pev(idpev_button)&IN_JUMP && !(pev(idpev_oldbuttons)&IN_JUMP)
&& 
pev(idpev_flags)&FL_ONGROUND){
g_p_jump[id] = true
}

if(
is_user_alive(id)){
pev(idpev_fuser2ftmp)
ftmp -= 0.001*g_p_upg[id][UPG_LJ]*g_p_upg[id][UPG_LJ]*ftmp
if(ftmp<0.0)
ftmp=0.0

if(g_c_ice[id]>|| g_c_frost[id]>0){
pev(idpev_v_angleangle)
if(
g_c_ice[id]>0){
ftmp 1000.0*sqroot(g_c_ice[id]-1)
2*sqroot(g_c_ice[id])
s21
sum 
s+s2
}else{
ftmp 500.0
3
s2 
2
sum 
s+s2
}
g_p_angle[id][0] = g_p_angle[id][0]*s/sum angle[0]*s2/sum
if(angle[1]<-90.0 && g_p_angle[id][1]>90.0)
g_p_angle[id][1] = (g_p_angle[id][1]-360.0)*s/sum angle[1]*s2/sum
else if(angle[1]>90.0 && g_p_angle[id][1]<-90.0)
g_p_angle[id][1] = (g_p_angle[id][1]+360.0)*s/sum angle[1]*s2/sum
else
g_p_angle[id][1] = g_p_angle[id][1]*s/sum angle[1]*s2/sum

if(g_p_angle[id][1]<-180.0)
g_p_angle[id][1] += 360.0
else if(g_p_angle[id][1]>180.0)
g_p_angle[id][1] -= 360.0

set_pev
(idpev_anglesg_p_angle[id])
set_pev(idpev_fixangle1)
}
set_pev(idpev_fuser2ftmp)
}
return 
FMRES_IGNORED

Somewhere here
__________________


Projects:
Zombie Elite - Technical: 100% Looking for models and sounds...
CS:Source Zombie -
Work in progress...
MmikiM is offline
 



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 21:21.


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