Thumbs upOutdatedMy collection of LUA script snippets

Posts 16–30 of 273 · Page 2 of 19
Quote Originally Posted by commie85 View Post
Interesting idea you have there, specially since your game stats are tracked now, and having 200 skills point would be see as cheater and result being banned ( not yet but maybe later ).
I myself tryed to toogle on/off the saw script so it's not obvious to others players, but so far no luck.
source : steam forum, a user even started to use those stats on his website payday2-stats.fr ( if you look for player 76561197961169497 in search bar i's just obvious..... lulz )
Whats being tracked now? Haven't been on in 2 days
Nothing more since 2 days :d ( skills tree / win-lose / masks / weapons / lvl / offshore $ )
Great Work on your Injector release! Something we've been lacking for a while.

anyways i would like to do something like this
-- Message on screen
if managers.hud then
managers.hud:show_hint( { text = "GTFO! TIME TO GO! MOVE YOUR ASS!" } )
end
but send it everyone in my server. Is this possible?
Quote Originally Posted by ixfingerzxi View Post
Great Work on your Injector release! Something we've been lacking for a while.

anyways i would like to do something like this

but send it everyone in my server. Is this possible?
No it isn't possible. Except to send messages that are already pre-defined by Payday 2.

Added 'Diamond Heist (Pro)' to job spawning code. Added 'Increased interaction distance (20x)'.
Quote Originally Posted by dougbenham View Post
Added 'Increased interaction distance (20x)'.[/b]
Thanks man, I was trying to figure this out for "just" keycard locks, but this works wonders.

edit: Need INSIDE MAN skill (via script?) to use driver asset, and 0% asset cost... points alloted elsewhere (lvl 100)
Im sorry. I cant find Increased interaction distance (20x) code.

Can u give me code for replenish health? I saw it somewhere but i forgot where...

AMMO RESET ON INJECT does not work for me.
Code:
-- AMMO RESET ON INJECT
-- player:inventory():set_ammo( 1.0 )
Unlimited messiah charges (self-revive) how this work?? do i have to use specific button for it?
Code:
-- Unlimited messiah charges (self-revive)
function PlayerDamage:consume_messiah_charge() return true 
end
function PlayerDamage:got_messiah_charges() return true 
end
Fast Drilling I have set it to 100 sec but it wont work on all safes and i need it because of new titan safes
Code:
-- Fast Drilling
function TimerGui:_set_jamming_values() return end
function TimerGui:start( timer )
        timer = 100
        if self._jammed then
                self:_set_jammed( false )
                return
        end
       
        if not self._powered then
                self:_set_powered( true )
                return
        end
       
        if self._started then
                return
        end
       
        self:_start( timer )
        if managers.network:session() then
                managers.network:session():send_to_peers_synched( "start_timer_gui", self._unit, timer )
        end
end
Can u make a code for flashing damage? It hurts my eyes.

Thank you. Your work is great!
Quote Originally Posted by Win32 View Post
Im sorry. I cant find Increased interaction distance (20x) code.
We have to wait for a mod to update my post since MPGH doesn't let users edit their post after 24 hours.

Quote Originally Posted by Win32 View Post
Can u give me code for replenish health? I saw it somewhere but i forgot where...

AMMO RESET ON INJECT does not work for me.
Code:
-- AMMO RESET ON INJECT
-- player:inventory():set_ammo( 1.0 )
Code:
managers.player:player_unit():character_damage():replenish()
Quote Originally Posted by Win32 View Post
Unlimited messiah charges (self-revive) how this work?? do i have to use specific button for it?
Code:
-- Unlimited messiah charges (self-revive)
function PlayerDamage:consume_messiah_charge() return true 
end
function PlayerDamage:got_messiah_charges() return true 
end
Look into the Payday 2 Messiah perk. I don't know how it works myself. Sorry..

Quote Originally Posted by Win32 View Post
Fast Drilling I have set it to 100 sec but it wont work on all safes and i need it because of new titan safes
Code:
-- Fast Drilling
function TimerGui:_set_jamming_values() return end
function TimerGui:start( timer )
        timer = 100
        if self._jammed then
                self:_set_jammed( false )
                return
        end
       
        if not self._powered then
                self:_set_powered( true )
                return
        end
       
        if self._started then
                return
        end
       
        self:_start( timer )
        if managers.network:session() then
                managers.network:session():send_to_peers_synched( "start_timer_gui", self._unit, timer )
        end
end
I am using the fast drilling with timer set to 0.1 seconds and it works fine with the titan safes. Instant open.

Quote Originally Posted by Win32 View Post
Can u make a code for flashing damage? It hurts my eyes.
Which flashing damage are you referring to?
Quote Originally Posted by Win32 View Post
Can u make a code for flashing damage? It hurts my eyes.
Code:
   elseif category == "player" and upgrade == "flashbang_multiplier" then
	return 0
if you have a multiplier section of script add this inside it. Removes the duration. Sometimes 100% block. (the AI often throws them 100% accurately at your feet) so its noticeable change w/ this code
Quote Originally Posted by CanaAdrianE View Post
can you give me the link for your iphlaphi.dll?
Google "[RELEASE] iphlpapi.dll with error logging and allows configurable hotkeys transcend".


Quote Originally Posted by Rampant_uterus View Post
Code:
   elseif category == "player" and upgrade == "flashbang_multiplier" then
	return 0
if you have a multiplier section of script add this inside it. Removes the duration. Sometimes 100% block. (the AI often throws them 100% accurately at your feet) so its noticeable change w/ this code
Thanks, I'll add this to the list sometime soon.
Quote Originally Posted by Rampant_uterus View Post
Code:
   elseif category == "player" and upgrade == "flashbang_multiplier" then
	return 0
if you have a multiplier section of script add this inside it. Removes the duration. Sometimes 100% block. (the AI often throws them 100% accurately at your feet) so its noticeable change w/ this code
Um... If you do not have a multiplier section of script?
Just change else if to if?
Yea...drilling work on all safes if im the host

flashing damage when bullet hit you and when u are on fire
can you give me the link for your iphlaphi.dll?
unlimited doctor bag uses didn't work in pub, i'm host. any reason why?
Quote Originally Posted by Aaron View Post
Um... If you do not have a multiplier section of script?
Just change else if to if?
Yes, it should work fine. You have the right idea.

Quote Originally Posted by Rampant_uterus View Post
unlimited doctor bag uses didn't work in pub, i'm host. any reason why?
No, I haven't tested the unlimited doctor bag uses script. Someone else provided it & there should be credits for it. If you have trouble you can ask them. Let me know if you find out a better solution or if you desperately need me to look into it..
Posts 16–30 of 273 · Page 2 of 19
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?