Raised This Month: $ Target: $400
 0% 

Distance to Ceiling


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
butthead
Member
Join Date: May 2007
Location: Nitra, Slovakia
Old 01-12-2009 , 15:29   Distance to Ceiling
Reply With Quote #1

Hi all, how convert this code (from fakemeta_util.inc) :

PHP Code:
stock Float:fm_distance_to_floor(indexignoremonsters 1) {
    new 
Float:start[3], Float:dest[3], Float:end[3]
    
pev(indexpev_originstart)
    
dest[0] = start[0]
    
dest[1] = start[1]
    
dest[2] = -8191.0

    engfunc
(EngFunc_TraceLinestartdestignoremonstersindex0)
    
get_tr2(0TR_vecEndPosend)

    
pev(indexpev_absminstart)
    new 
Float:ret start[2] - end[2]

    return 
ret ret 0.0

to new function:

PHP Code:
stock Float:fm_distance_to_ceiling(indexignoremonsters 1) {

......  


Thx ...
__________________
butthead is offline
 


Thread Tools
Display Modes

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


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