Results 1 to 9 of 9
  1. #1
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy

    [Question] Only allow jump height for self?

    HI all,

    Is it possible to only allow dvars like jump_height for one person?
    using setclientdvar doesn't seem to do the trick.
    so if you set jump_height to a certain value, it will apply to everyone.

    After three hours of reading and googling I didn't find out how to do this, so I tried to work around this problem with something like this:

    Code:
    		self notifyOnPlayerCommand( "jump", "+gostand" );
                {
    		self waittill( "jump" );
    		setDvar("jump_height", 500);
                    // ?? //
    		wait 1;
    		SetDvar("jump_height", 0);
    
                    }
    The idea is when this player presses his jump button, the jump height is to 500, the player jumps directly, and the jump height is set back to what it was before right after. This way other players would have to jump at the exact same time as this player in order to have super jump.
    However, the way it is now, you need to press jump twice quickly, because the first time, you jump a tiny bit and are pushed down immediately. (try it if you don't understand what I mean)
    Only if you quickly press jump again before the 'wait 1' is over do you actually super jump.
    Players who do not know this, will not understand how it works.

    At the Position '// ?? //' I should be able to set "+gostand" or something like that, so the script makes him jump automatically. But I can't figure out how to force an action.
    It sounds simple but I can't find it.
    With the same idea you could for example trigger multiple actions with one key. So something like
    Code:
    		self notifyOnPlayerCommand( "shoot", "+attack" );
                {
    		self waittill( "shoot" );
    		+attack;
                    +gostand;
                    }
    would make the player jump automatically when firing.

    I have been searching online for hours now and can't find it.
    Hopefully one of these options is possible.
    Thanks in advance if anyone can help me out, and excuse my noobness. I'm still learning.

  2. #2
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,868
    Reputation
    1021
    Thanks
    8,868
    My Mood
    Angelic
    Toxin = Justin Wiener

    /ontopic

  3. #3
    r_arraz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Your desktop h4x1n up your compooter
    Posts
    370
    Reputation
    16
    Thanks
    76
    My Mood
    Cool
    I think ju***eight is a server wide dvar so it can't be applied to only one person unless it's changed quickly and no one else jumps at the same time as the VIP.





  4. #4
    Melodia's Avatar
    Join Date
    Dec 2009
    Gender
    female
    Posts
    2,608
    Reputation
    276
    Thanks
    1,661
    My Mood
    Dead
    Dis, Or you set the Jump height while the user holds another key.

    ~Moved to help, Will look into forcestand/action
    Love You All~

  5. #5
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy
    @ r_arraz: yes, exactly.
    @ Melodia: Thanks for looking into it.

  6. #6
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy
    btw, I tried sendcommandtoconsole(1,1,"+stand"); (also with 0,0, and with just "+stand", but that doesn't work.

    EDIT:
    I was thinking, the autoshoot/autofire function on some aimbots, that's using the 'force action' we are looking for, no?
    Last edited by Neekokeen; 06-24-2010 at 11:10 PM.

  7. #7
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,939
    Reputation
    478
    Thanks
    1,746
    My Mood
    Bored
    Do not double post, use the button.


    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  8. #8
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy
    Aye, sir. Got it.
    previous post edited, I can't delete it tho..

  9. #9
    Abstract's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Look in your refrigerator
    Posts
    3,626
    Reputation
    54
    Thanks
    978
    Quote Originally Posted by Neekokeen View Post
    Aye, sir. Got it.
    previous post edited, I can't delete it tho..
    Only staff can do that

Similar Threads

  1. [Discussion] Quick Question only for pros
    By ArtificialFlow_ in forum Combat Arms Discussions
    Replies: 37
    Last Post: 07-06-2011, 01:18 AM
  2. [Help] Make things work for self only
    By spifkie in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 08-15-2010, 07:07 AM
  3. A question regarding No DvD hack for COD 4, Wndows Vista
    By inocntspiltblood in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 2
    Last Post: 12-06-2007, 01:28 PM
  4. |Question| CE Memory Jumps
    By zosky in forum Visual Basic Programming
    Replies: 3
    Last Post: 07-11-2007, 06:40 PM
  5. jump hack for WarRock?
    By Trivster in forum Hack Requests
    Replies: 4
    Last Post: 02-24-2007, 11:07 AM