Hi! I'm wondering since i have an upgraded_upgraded weapon, that can i make it so i can buy wall ammo off the wall for an upgraded_upgraded weapon, and to change the pack a punch price for an upgraded_upgraded weapon to be different from 5000? Also can that weapon be removed from the mystery box once it has been double pap, to prevent a useless weapon in a mystery box? If anyone could help me, that would be appreciated
I can't really remember who helped me to do it, but make cents talked about the normal in here. Maybe you can just edit it to be _upgraded_upgraded in the script.
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time
Hi! I'm wondering since i have an upgraded_upgraded weapon, that can i make it so i can buy wall ammo off the wall for an upgraded_upgraded weapon, and to change the pack a punch price for an upgraded_upgraded weapon to be different from 5000? Also can that weapon be removed from the mystery box once it has been double pap, to prevent a useless weapon in a mystery box? If anyone could help me, that would be appreciated
I have an old topic on zombiemodding.com where it tells you all the stuff you meed to change for wall-buy, ammo, hasweapon checks etc. You would have to look for it. Search for my username ( also BluntStuffy and try something like _upgraded_upgraded ) If you cant find it i can try and look for it tonight/tomorrow
I have an old topic on zombiemodding.com where it tells you all the stuff you meed to change for wall-buy, ammo, hasweapon checks etc. You would have to look for it. Search for my username ( also BluntStuffy and try something like _upgraded_upgraded ) If you cant find it i can try and look for it tonight/tomorrow
OMFG thank you so much. I've been trying to find a solution for this for ages. But i also have 2 questions regarding this. 1: In your post you said something about alt ammo, is alt ammo purchasable from the original weapon trigger? (ex: buys type 99, upgrades it, it gets gl attachment, buys type 99 upgraded ammo)
2: the hintstring don't seem to update from the script. The prices are 5000 for _upgraded_upgraded ammo but buying a gun, it just lists " 500(gun price) || 350 (ammo price) || 4500 (upgraded ammo price " instead of updating _upgraded price and adding _upgraded_upgraded's price. I also changed the orignal pap price in the script but it shows as 4500 still.
Sorry if i'm asking too much, but any tip or advice would be appreciated!
OMFG thank you so much. I've been trying to find a solution for this for ages. But i also have 2 questions regarding this. 1: In your post you said something about alt ammo, is alt ammo purchasable from the original weapon trigger? (ex: buys type 99, upgrades it, it gets gl attachment, buys type 99 upgraded ammo)
Tbh, i'm not really sure anymore. It's been a while since i messed with that ( as you can see from the date ). You would have to try and see, if it doesn't you could Always change the function in _zombiemode_weapons that give the ammo to the players. I was trying some weird stuff with alt-weapons and ammo, so just ignore the talk about alt-ammo etc if you dont use it.
Quote
2: the hintstring don't seem to update from the script. The prices are 5000 for _upgraded_upgraded ammo but buying a gun, it just lists " 500(gun price) || 350 (ammo price) || 4500 (upgraded ammo price " instead of updating _upgraded price and adding _upgraded_upgraded's price. I also changed the orignal pap price in the script but it shows as 4500 still.
The hintstrings are 'fixed' so they wont update themself. You need to change them. So look for the sethintstring() lines. Most of them for weapons and PaP look like this:
where it has the & infront of the " This indicates it's a localized string ( so it adjusts itself to the language you install the game with. You can either go to /raw/english/localizedstrings/ and look for the zombie.str. Then you can adjust them in there. You can also just hard-code them in your scripts by removing the & and just typing them out:
Tbh, i'm not really sure anymore. It's been a while since i messed with that ( as you can see from the date ). You would have to try and see, if it doesn't you could Always change the function in _zombiemode_weapons that give the ammo to the players. I was trying some weird stuff with alt-weapons and ammo, so just ignore the talk about alt-ammo etc if you dont use it. The hintstrings are 'fixed' so they wont update themself. You need to change them. So look for the sethintstring() lines. Most of them for weapons and PaP look like this:
where it has the & infront of the " This indicates it's a localized string ( so it adjusts itself to the language you install the game with. You can either go to /raw/english/localizedstrings/ and look for the zombie.str. Then you can adjust them in there. You can also just hard-code them in your scripts by removing the & and just typing them out:
but i'm unable to set up the values without setting the cost and get_ammo_cost, so if i do
Code Snippet
Plaintext
self SetHintString( "Upgraded Ammo [2500], Double Upgraded Ammo [5000]", cost, get_ammo_cost( self.zombie_weapon_upgrade ) );
it would appear like "Upgraded Ammo [2500], Double Upgraded Ammo [5000] 1000500" in game so i'm guessing the end numbers are the cost, and get_ammo_cost so how am i able to put them in so it will show the upgraded cost, double upgraded cost, weapon cost and ammo cost? I tried the localized way and i was wondering why you said there was no benefit in doing it that way? Also is there a way to change the pap cost for _upgraded and _upgraded_upgraded? Sorry if i'm asking for to much lol.
trigger sethintstring( "Buy weapon, Cost: "+weapon_cost+" Ammo Cost "+ammo_cost+"Pap Ammo Cost: "+pap_ammo+" Double PaP ammo Cost: "+pap2x_ammo );
Localized strings are really only usefull if you want to release multiple langue-versions of your map. If you only make an english version using localized strings is only extra work for nothing.
You can change the pap-hintstring, sure. It will be more complicated to make it display the correct price depending on if you appraoch the machine with a paped or a non-paped weapon. But you can simply do something like. "Press Use to upgrade weapon [5000]. Double upgrade [10000]" It should be in zombiemode_perks somewhere, just search for sethintstring
trigger sethintstring( "Buy weapon, Cost: "+weapon_cost+" Ammo Cost "+ammo_cost+"Pap Ammo Cost: "+pap_ammo+" Double PaP ammo Cost: "+pap2x_ammo );
Localized strings are really only usefull if you want to release multiple langue-versions of your map. If you only make an english version using localized strings is only extra work for nothing.
You can change the pap-hintstring, sure. It will be more complicated to make it display the correct price depending on if you appraoch the machine with a paped or a non-paped weapon. But you can simply do something like. "Press Use to upgrade weapon [5000]. Double upgrade [10000]" It should be in zombiemode_perks somewhere, just search for sethintstring
I'm a very horrible at scripting so what you said was a bit confusing but i got it, i was able to use the sethingstring instead of the localized strings by doing this
Code Snippet
Plaintext
self SetHintString( "For Weapon [Cost: "+cost+"], Ammo ["+get_ammo_cost( self.zombie_weapon_upgrade )+"], Upgraded Ammo [Cost: 2500], Double Upgraded Ammo [Cost: 5000]" );
It worked in game but idk if could cause problems later on. But thank you so much for helping me One other question, i'm using harry's scripts for perks and pap so the strings and sethintstrings for the pap price aren't called there i think, because i looked for sethintstring and nothing regarding pap showed up so idk.
It worked in game but idk if could cause problems later on. But thank you so much for helping me
That should work fine.
Quote
One other question, i'm using harry's scripts for perks and pap so the strings and sethintstrings for the pap price aren't called there i think, because i looked for sethintstring and nothing regarding pap showed up so idk.
Havent used those myself, so i couldn't tell you. Guess just open all files that come with it at the same time, and search through all of them at the same time for sethintstring(). Think i've seen him put a lot of variables at the top of his scripts, so it's eaasier for user to edit. So it could be he included them as a 'setting' and stored the string in a variable at the top of a script somewhere..
Havent used those myself, so i couldn't tell you. Guess just open all files that come with it at the same time, and search through all of them at the same time for sethintstring(). Think i've seen him put a lot of variables at the top of his scripts, so it's eaasier for user to edit. So it could be he included them as a 'setting' and stored the string in a variable at the top of a script somewhere..
All this stuff has nothing to do with the hintstring/price. it's for spawning the models etc
Quote
there's also this
Code Snippet
Plaintext
self.trig SetHintString( "Press & hold ^6&&1^7 to buy Pack A Punch [Cost: " + level.pack_a_punches[ self.trig.script_string ].pap_price + "]" );
but it works the same way as the script you showed me. so idk, very confusing lol.
That's the string you need to change, just type whatever you want here just like with the weapons. ( the .pap_price variable sets the price for the normal pap, you can search where that variable is set.
All this stuff has nothing to do with the hintstring/price. it's for spawning the models etc
That's the string you need to change, just type whatever you want here just like with the weapons. ( the .pap_price variable sets the price for the normal pap, you can search where that variable is set.
sorry if it sound like im contradicting you but i tried finding the pap_price and the only variable was the 5000 in the precache mdoels shaders and weapon files and settings.