whenever you get an array, see if a targetname in this case weapon_upgrade is more than 1, meaning you have more than 1 wall weapon in the map you use getentarray, getent is only for 1 specific targetname. the for function is needed for the array to get a list of all the weapon in the map, ie thompson, gewvehr, type100, stuff like that. the for function has to go after the getentarray or it will only get the first weapon it comes across
Last Edit: August 30, 2014, 07:45:10 pm by thezombiekilla6
Well thank you you solved my problem, but one more thing, do you know how to make it so i cant switch to a bouncing betty , and how to disable the bouncing betty aswell?
Well thank you you solved my problem, but one more thing, do you know how to make it so i cant switch to a bouncing betty , and how to disable the bouncing betty aswell?
Since betties use a different targetname and there is only 1 of them you can use getent so its easier
how to disable it from switching I am not sure, will have to look it up. if you have a bowie knife you can do the same thing as bettie but where it says bettie change it to bowie and for the betty_purchase change it to bowie_upgrade
how to disable it from switching I am not sure, will have to look it up. if you have a bowie knife you can do the same thing as bettie but where it says bettie change it to bowie and for the betty_purchase change it to bowie_upgrade
that should allow you to make it so they cant pull out a bouncing bettie, put it right after the player picks up the ray gun and then have it enable the offhandweapons after 20 seconds when the ray gun is gone
that should allow you to make it so they cant pull out a bouncing bettie, put it right after the player picks up the ray gun and then have it enable the offhandweapons after 20 seconds when the ray gun is gone
Hmm thought it would work for both seeing as in the weapons file the betty is listed as a grenade. I am fixing to head out so maybe someone else can help you