Jump to content
Sign in to follow this  
baldwin

Force explosive bullets for your weapons (Toggleable)

Recommended Posts

baldwin

--Written by baldwin

local ply = managers.player:local_player()

if not alive(ply) then

  return

end

--v=10Hmro0u-1Y

ExplosiveBulletsEnabled = not ExplosiveBulletsEnabled

if ExplosiveBulletsEnabled then 

  for _,tab in pairs(ply:inventory()._available_selections) do

    tab.unit:base()._old_bullet_class = tab.unit:base()._bullet_class

    tab.unit:base()._bullet_class = InstantExplosiveBulletBase

  end

else

  for _,tab in pairs(ply:inventory()._available_selections) do

    tab.unit:base()._bullet_class = tab.unit:base()._old_bullet_class or InstantBulletBase

  end

end

Enjoy silenced thanatos with explosive bullets :D

Share this post


Link to post
Share on other sites
r4ppi

where do i put this code? num7/8/9.lua ?

Share this post


Link to post
Share on other sites
Guest

where do i put this code? num7/8/9.lua ?

make a new lua file and bind it to any unused key on your keybord, or try to ad it to one of the menus but i personally dont know how

Share this post


Link to post
Share on other sites
Rank/Stark

make a new lua file and bind it to any unused key on your keybord, or try to ad it to one of the menus but i personally dont know how

I could be wrong but I think its already in v16 as change ammo in the menu sure it has to be toggled in menu but thats not too hard.

Share this post


Link to post
Share on other sites
r4ppi

make a new lua file and bind it to any unused key on your keybord, or try to ad it to one of the menus but i personally dont know how

it acutally worked putting it into num7.lua :)

thx for helping me anyways

Share this post


Link to post
Share on other sites
Guest

I could be wrong but I think its already in v16 as change ammo in the menu sure it has to be toggled in menu but thats not too hard.

maybe, but in theory you can put almost anything to a sepereate key :) for example the xhairconverter from one of the mouse setups to "Alt" :D

thx for helping me anyways

never said it wont work the underline was just as clearness in general, but i'm glad that you had succes :)

Share this post


Link to post
Share on other sites
IceMaverick

Enjoy silenced thanatos with explosive bullets :D

I'm binding this script to a separate key, but like everything bound to a separate key, i've been wedging the inChat() check into those functions so i don't accidentally toggle it while typing out orders. Where would you suggest the inChat() check go that would be best? I know nothing of Lua and only the basics of C and did not see an immediately obvious place to stick it like many of the other scripts.

Share this post


Link to post
Share on other sites
IceMaverick

if is_chating() then

    return

end

At the very begining of the script (in case if is_chating() returns true whenever you're in chat window)

Is "is_chating()" something that I need to declare in a global statement somewhere? Currently the other chat checks all utilize "is not inChat()", would I just need to tweak your code to reflect my own function names?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Stop being a peeping tom and join the community.... we got cookies

Join the crew now

Sign in

Already part of the crew? Board right here

Sign In Now
Sign in to follow this  

×