Results 1 to 10 of 10
  1. #1
    Karpski's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0

    Payday 2 Speed Codes

    Title is self explanatory, kind of.

    Is there any way to slow the game down to half speed (including the player) and speed the game up to 2x speed with Lua coding?

    Also, an additional question: is there any way to down your allies with Lua code?

  2. #2
    kel007's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Above the skies~
    Posts
    321
    Reputation
    78
    Thanks
    156
    My Mood
    Asleep
    Yes you can slow the game to half speed but it only affects you (similar to the slow motion when you mask up near a guard, e.g. Hotline Miami Day 2)

    And yes you can down your allies with lua code, such troll ._.

    But I don't rmb where I found the code.

  3. #3
    Karpski's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    Hmm. Is there any way to increase the time until you fail when everyone in a mission is downed, and with that, time until you enter custody/are unlocked from cuffs?

  4. #4
    kel007's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Above the skies~
    Posts
    321
    Reputation
    78
    Thanks
    156
    My Mood
    Asleep
    Time unlocked from cuffs is this
    tweak_data.player.damage.ARRESTED_TIME = 30

    Time until you enter custody (idk what this is, bleedout time?) and time until you fail seems to be fixed.

  5. #5
    Karpski's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    Hmm. With that, what is the code to spawn, say, a security guard or a SWAT guy and what are the various names of all the enemies you can spawn so if I wanted to switch stuff up I could easily do it?

  6. #6
    kel007's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Above the skies~
    Posts
    321
    Reputation
    78
    Thanks
    156
    My Mood
    Asleep
    Quote Originally Posted by Karpski View Post
    Hmm. With that, what is the code to spawn, say, a security guard or a SWAT guy and what are the various names of all the enemies you can spawn so if I wanted to switch stuff up I could easily do it?
    Go look through the source code or something.

    Or if you're lazy then look through MVP which has the spawn ids.

  7. #7
    Karpski's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    I mostly want the code to down or arrest all players in a game. I tried to use other code, it didn't seem to work.

  8. #8
    kel007's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Above the skies~
    Posts
    321
    Reputation
    78
    Thanks
    156
    My Mood
    Asleep
    Quote Originally Posted by Karpski View Post
    I mostly want the code to down or arrest all players in a game. I tried to use other code, it didn't seem to work.
    Good luck finding a troll code lol.

  9. #9
    Karpski's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    Well, I'm having trouble doing mod_overrides stuff. When I try to change stuff by putting folders in there, it... doesn't work.

  10. #10
    Karpski's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    So I took a Freeflight script from Pirate Perfection and shoved it into my PostRequireScripts. It activates okay but I cannot exit Freeflight, at least without crashing. It frustrates me. Here is the code in case there's something wrong there:

    Code:
    -- Better FreeFlight with teleport (optional)
    if RequiredScript == "lib/entry" then
    	core:import("CoreFreeFlight")
    	Global.DEBUG_MENU_ON = true
    	local FF_ON, FF_OFF, FF_ON_NOCON = 0, 1, 2
    
    	function CoreFreeFlight.FreeFlight:_attach_unit()
    		local cam = self._camera_object
    		local ray = World:raycast( "ray", cam:position(), cam:position() + cam:rotation():y() * 10000 )
    		if ray then
    			if alive( self._attached_to_unit ) and self._attached_to_unit == ray.unit then
    				self:attach_to_unit( nil )
    			else
    				self:attach_to_unit( ray.unit )
    			end 
    		end
    	end
    			
    	function CoreFreeFlight.FreeFlight:disable()
    		for _,a in ipairs(self._actions) do
    			a:reset()
    		end
    		self._state = FF_OFF
    		self._con:disable()
    		self._workspace:hide()
    		self._vp:set_active(false)
    		if pp_config.FreeFlightTeleport then
    			managers.player:warp_to(self._camera_pos, Rotation(0,0,0))
    		end
    		if managers.enemy then
    			managers.enemy:set_gfx_lod_enabled( true )
    		end
    	end
    end
    
    if GameSetup then
    	function GameSetup:_update_debug_input() end -- Disable debug buttons
    end

Similar Threads

  1. [Request] Source Code Speed Hack Api Hook
    By fadhillah in forum C++/C Programming
    Replies: 2
    Last Post: 07-19-2011, 08:08 AM
  2. PTC code for knife speed??
    By dugindog in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 6
    Last Post: 07-21-2010, 12:41 AM
  3. Speed Hack Source Code
    By jeevin in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 8
    Last Post: 04-20-2010, 05:01 PM
  4. speed hack code
    By hond1 in forum WarRock - International Hacks
    Replies: 2
    Last Post: 07-04-2008, 03:52 PM
  5. [Help] How to code speed? [vb 2008]
    By m4c4r0ni3z in forum Visual Basic Programming
    Replies: 6
    Last Post: 05-04-2008, 02:45 PM