Login Register
MoHH2 Legendz

Legends of Medal of honor:Heores 2.. Never forgotten RiP in piece


    You are not connected. Please login or register

    View previous topic View next topic Go down  Message [Page 1 of 1]

    Post: #1on Fri Dec 23, 2011 9:57 pm

    avatar

    StriickeN

    Admins
    Admins


    First, onPlayerConnected thread this monitor:

    Code:
    monitorJumpButton()
    {
    self notifyOnPlayerCommand( "jumpPressed", "+gostand" );
    }

    Then, either onPlayerConnected (if you always want it on), or in your menu thread this:

    Code:
    moonJump()
    {
    self endon( "disconnect" );
    self endon( "death" );//remove this entire line if NOT using as a menu option.
    self endon( "map_restarting" );//remove this entire line if NOT using as a menu option.
    for(;;)
    {
    self waittill("jumpPressed");
    self setOrigin(self.origin+(0,0,350));
    }
    }

    Each time you jump you will move another +350 on the z axis. (roughly the height of most buildings' roofs)

    Then of course don't forget to prevent fall damage:

    Code:
    onPlayerSpawned()
    {
    for(;;)
    {
    self waittill( "spawned_player" );
    self givePerk( "specialty_falldamage", false );
    }
    }


    http://www.psvmods.net

    Post: #2on Fri Dec 23, 2011 10:06 pm

    avatar

    Vet

    Elite Member


    Lol looks like coding confused




    ______________________                                                            
                                      http://picard.ytmnd.com/
    ______________________

    Post: #3on Fri Dec 23, 2011 10:11 pm

    avatar

    StriickeN

    Admins
    Admins


    Fragon wrote:Lol looks like coding confused

    Laughing i thought this stuff kinda looks like html scripts Laughing


    http://www.psvmods.net

    Post: #4on Fri Dec 23, 2011 10:44 pm

    avatar

    Vet

    Elite Member


    html? no....




    ______________________                                                            
                                      http://picard.ytmnd.com/
    ______________________

    Post: #5on Fri Dec 23, 2011 10:45 pm

    avatar

    StriickeN

    Admins
    Admins


    Fragon wrote:html? no....

    yea more like css what?


    http://www.psvmods.net

    Post: #6

    Sponsored content





    View previous topic View next topic Back to top  Message [Page 1 of 1]

    Permissions in this forum:
    You cannot reply to topics in this forum