Need help optimising scripts
-
JezuzLizard Interesting. Well I have no idea how to disable the perk drink animation since I am very inexperienced with scripting. Also, does that explain the crash on MoB when I revive myself while having jugg (I was using self setperkand it only crashed on MoB)
-
@P00DL3W0Lf_GR https://forum.plutonium.pw/topic/26201/zm-town-custom-perks
You can guide the code of this script to get customized mule kick as you need. in addition to obtaining many more perks. -
JezuzLizard Ok so I can get mule kick to work on green run and nuketown but I cannot get itto work on mob. Well it does activate when I buy jugg as it should but if I enter afterlife (through the afterlife boxes and not by getting downed) and revive myself the game crashes the moment the revive bar fills and gives the same error code that I posted above. My assumption is that it tries to load the perk icon but fails because it only exists on grief and not MoTD.
If I remove mule kick from the script MoB works fine (but then I do't have mule kick...) -
This post is deleted!
-
This post is deleted!
-
New idea: is there a way to increase the weapon limit to 3 from 2 without using "specialty_additionalprimaryweapon" and if yes, what is the name (maxweapons, setweaponlimit etc...)?
-
@P00DL3W0Lf_GR
level.get_player_weapon_limit = 3;
Add it in the init() function
-
Kalitos Unfortunately that doesn't work. The sound that the box plays when it moves is constantly playing and the game keeps giving and taking away my 1911 while also taking points from me. No idea... STUPID MAP.
-
Kalitos @P00DL3W0Lf_GR That variable is used as a function ptr not a number. You need to create a function that returns a value for it to work properly.
-
@P00DL3W0Lf_GR
init() { level.get_player_weapon_limit = ::custom_get_player_weapon_limit; } custom_get_player_weapon_limit( player ) { weapon_limit = 3; return weapon_limit; }
-
Kalitos This one works! Thank you for your time and effort! Cheers!