[SOLVED] 3 weapons / additional weapon
-
Hey, guys. I'm trying to use 3 weapons on my server, but without success so far ...
I try to change weapon_limit to weapon_limit = 3 and maxweapons to maxweapons = 3 in the script, but without success ...
I thought about adding mule kick, but I don't know how to continue with mule kick after drop and revive...HELP PLSSSSS
(sorry, i'm using google translate) -
Hey, guys. I managed to make it work. Changing by the "main" script was not working, I downloaded the decompiled _zm_utility script, changed the rules and copied it to the server, now the server loads 2 scripts. I don't think it's the best solution, but I didn't find anything about it, so I'll leave my solution here.
if (true)
{
weapon_limit = level.additionalprimaryweapon_limit;
} -
Hey, guys. I managed to make it work. Changing by the "main" script was not working, I downloaded the decompiled _zm_utility script, changed the rules and copied it to the server, now the server loads 2 scripts. I don't think it's the best solution, but I didn't find anything about it, so I'll leave my solution here.
if (true)
{
weapon_limit = level.additionalprimaryweapon_limit;
}broken168 I wouldn't recommend using that script as it is currently, due to it being in the major errors category still. I never got around to fixing it since its likely to be difficult to fix due to its size and the number functions it contains. I can't recall the exact bugs I encountered when I tested _zm_utility.gsc so anyone else wanting to use this script be warned that there may be unintended behaviors.
-
broken168 I wouldn't recommend using that script as it is currently, due to it being in the major errors category still. I never got around to fixing it since its likely to be difficult to fix due to its size and the number functions it contains. I can't recall the exact bugs I encountered when I tested _zm_utility.gsc so anyone else wanting to use this script be warned that there may be unintended behaviors.
JezuzLizard Thanks for letting me know. I will continue testing and leave my feedback in case something goes wrong.
-
broken168 I wouldn't recommend using that script as it is currently, due to it being in the major errors category still. I never got around to fixing it since its likely to be difficult to fix due to its size and the number functions it contains. I can't recall the exact bugs I encountered when I tested _zm_utility.gsc so anyone else wanting to use this script be warned that there may be unintended behaviors.
JezuzLizard I found these bugs: the monkey bomb and the flashbang are working as weapons, that is, when I have 3 guns and I get the monkey bomb, I lose a gun. if I have the monkey bomb and try to get the flashbang, or vice versa, I can't, but I can get another weapon without losing the monkey bomb / flashbang. this is confusing, sorry.
do you know how i can change weapon_limit without having to load the script?
-
JezuzLizard I found these bugs: the monkey bomb and the flashbang are working as weapons, that is, when I have 3 guns and I get the monkey bomb, I lose a gun. if I have the monkey bomb and try to get the flashbang, or vice versa, I can't, but I can get another weapon without losing the monkey bomb / flashbang. this is confusing, sorry.
do you know how i can change weapon_limit without having to load the script?
broken168 Define this function override in _clientids.gsc
level.get_player_weapon_limit = ::new_weapon_limit; new_weapon_limit( player ) { return 3; } -
THANK YOU SO MUCH :))))))
I tried to add the code the way you showed it, but there was an error in syntax when I tried to compile. I tried to make a change until it worked. it looked like this:
newLimit() { level.get_player_weapon_limit = ::new_weapon_limit; } new_weapon_limit( player ) { return 3; }and called the newLimit () function; in spawned action.
TY TY TY

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login