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

HL Leap -> CS:S Leap


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 06-18-2010 , 21:28   HL Leap -> CS:S Leap
Reply With Quote #1

PHP Code:
leap(player)
{
    
decl Float:vector[3]
    
GetEntPropVector(playerProp_Data"m_vecVelocity"vector)
    
    if(
vector[2] != 0)
        return

    if(
vector[0] == && vector[1] == 0)
        return
    
    
vector[0] *= 3
    vector
[1] *= 3
    vector
[2] = 750.0
    
    TeleportEntity
(playerNULL_VECTORNULL_VECTORvector)


After many times I've tried to see if the selected player can leap, I don't seem to get it working. Any help would be great.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Wazz
SourceMod Donor
Join Date: Mar 2009
Old 06-20-2010 , 13:52   Re: HL Leap -> CS:S Leap
Reply With Quote #2

PHP Code:
                new Float:aang[3], Float:vvel[3], Float:pvec[3];
                
                
GetClientAbsAngles(clientaang);
                
GetEntPropVector(clientProp_Data"m_vecVelocity"vvel);
                
GetAngleVectors(aangpvecNULL_VECTORNULL_VECTOR);
                
                
vvel[0] += pvec[0] * 1200.0;
                
vvel[1] += pvec[1] * 1200.0;
                
vvel[2] += pvec[2] * 800.0;
                
                
TeleportEntity(clientNULL_VECTORNULL_VECTORvvel); 
That should get you going.
Wazz is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 06-20-2010 , 18:35   Re: HL Leap -> CS:S Leap
Reply With Quote #3

Will try it out, thanks.

Will post output.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Reply


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 02:41.


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