View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-17-2013 , 03:21   Re: Make developer fly? [zp 4.3]
Reply With Quote #8

Cleaned up :

1 thing you have to fix though is that you remove JP on kill but don't never give it back

PHP Code:
public OnPlayerJump(id)
{
    if( 
bHasJetPack[id] && pev(idpev_button) & IN_DUCK && ~pev(idpev_flags) & FL_ONGROUND )
    {
        static 
Float:vVelocity[3], Float:upSpeed
        pev
(idpev_velocityvVelocity)
        
upSpeed vVelocity[2] + 35.0
        velocity_by_aim
(id300vVelocity)
        
vVelocity[2] = upSpeed 300.0 300.0 upSpeed
        set_pev
(idpev_velocityvVelocity)
    }

__________________
- tired and retired -

Last edited by ConnorMcLeod; 11-17-2013 at 03:23.
ConnorMcLeod is offline