Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. How to remove velocity/speed kept from before saving position in cod jumper? I slide if I am moving when I load position.

How to remove velocity/speed kept from before saving position in cod jumper? I slide if I am moving when I load position.

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
2 Posts 2 Posters 127 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CrustyGundefined Offline
    CrustyGundefined Offline
    CrustyG
    wrote on last edited by
    #1

    I am using this code to load and save position. How can I make sure I do not slide when I load position if I am moving when I press useButtonPressed() ?

    if(self meleeButtonPressed() && self isOnGround())
    		{
    			self.save1pos = self.origin;
    			self.save1ang = self getPlayerAngles();
    			self iPrintLn("Position 1 Saved.");
    			wait 0.75;
    		}
    
    		
    
    		else if(self useButtonPressed() && self isOnGround())
    		{
    			// load position 1.
    			self setOrigin(self.save1pos);
    			self setPlayerAngles(self.save1ang);
    			self iPrintLn("Position 1 Loaded.");
    			wait 0.75;
    		}		
    
    1 Reply Last reply
    0
    • FutureRaveundefined Offline
      FutureRaveundefined Offline
      FutureRave
      VIP
      wrote on last edited by FutureRave
      #2

      add a call to SetVelocity.

      self setVelocity( 0, 0, 0 );
      
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Donate