"Deleted code is debugged code." - Jeff Sickel "Mathematicians stand on each others' shoulders and computer scientists stand on each others' toes." - Richard Hamming
For those looking for a completely fixed Mule Kick and perk loss on death: CLICK
First of all I'd like to thank BamSkater33 for his time and effort he put into making the perks work with stock maps, he helped the community a lot. Also, please note that this is only a temporary solution untill the UGX team releases UGX-Mod v1.1. I'd also like to mention that I'm still not able to make the perks go away after you die. ALL other things have been fixed that were needed to be fixed for UGX compatibility. If anyone has a solution for this, please feel free to share this with us.
First of all, I'm asuming that you already have done all modifications to the code needed to continue with this tutorial. If not: http://www.zombiemodding.com/index.php?topic=10345.0 DO NOT add in the codes for Quick Revive sine UGX already has a fixed Quick Revive.
Now onto the fixes:
1. Fixing Mule Kick
Go to mods/mapname/mapname.gsc and look for this line from Bam's tut:
Replace this WHOLE chunck of code with: What this does is it basicly tells the game to add the weapons from UGX specified in the script to be added to the players weapon slots. Feel free to change the weapons to your likings.
2. Fixing Jugg (Yes, it's bugged after using the BO perks...)
Go to mods/mapname/ugx_mod.iwd/maps/_zombiemode_perks_black_ops.gsc. On line 43 change this:
Into: Change the health value from 280 to anything else. (250 is the default in Der Riese, but I just like 280 more. )
3. Fixing perk shaders (icons)
There is a simple fix for this. Due to custom perk shaders having to be included in a .ff file we will have to tick the "Build mod.ff fastfile" option:
After compiling your map the Project Mover application will rename the mod.ff file you created to "localized_mapname.ff". (if set up correctly)
EXTRA'S
4. Lighting issues on perk machines Go into Radiant and select one of the BO perk machines. (Mule Kick in this example) Then press the "Stamp" button.
Normally your perk machine should be lighted ingame now. (IDK why they aren't when still in Radiant as a prefab) If not, select the model entity for your perk machine and turn it into a misc->model by right clicking and selecting misc>model.
5. Changing prices Open mods/mapname/ugx_mod.iwd/maps/_zombiemdoe_perks_black_ops.gsc and look for: (line 166) This contains the prices for all BO perks.
For an example I will be editing the price for Mule Kick. Find: And replace "3000" with the price you want Mule Kick to be, for example:
6. Changing "Second Chance" string for Quick Revive to "Quick Revive" & changing the price (this is NOT a string for Bam's perks but for the UGX Revive)
String: Open mods/mapname/ugx_mod.iwd/maps/_zombiemode_perks.gsc and find:
Change this to:
Price: Open mods/mapname/ugx_mod.iwd/maps/_zombiemode_perks.gsc and find:
Change to this for the BO prices: (constant 500, please note that this might not be the most efficient method but it is however the easiest)
As I already said, I stil haven't fixed the issue where perks won't go away when you go down. If anyone knows how to fix this, please post a reply and I'll add it to the tutorial and give you credit. Also, if you encounter any other problems, please tell me and I'll try to fix them. I don't remember there being any other problems I fixed but it is possible I forgot some.
I hope this helped you guys out a bit.
Last Edit: September 20, 2013, 03:40:58 pm by JR-Imagine
that mule kick script give you free weapons(what i see), this weekend i going to try to make it again.
or today.
Yeah, that's the only way people have been able to do it as far as I know. That's why I try to keep those weapons low powered. Although M14 isn't that bad, neither is the Deagle.
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
Great tutorial so far, this will help a lot of people. Now fix Mule Kick the rest of the way and develop a way to lose the perks on death. I was able to do this just fine in UGX Mod v1.1, so it's obviously possible.
The "free weapons" are because the script does not account for every time a weapon is given to the player (such as the Random Box, buying wall weapons, etc). Add some checks and safely to the weapon_give() and weapon_spawn_think() functions in UGX Mod's _zombiemode_weapons.gsc
Perks on Death Hint: Don't use HasPerk(), SetPerk(), or UnsetPerk() for any perks other than the default 4 - the functions are not reliable for the rest of the perk names in the engine. Develop your own version of those three functions which will store each player's perks within a variable set on the player ents themselves. Call your unset function in the same place that unsetperk() is called in _zombiemode_perks.
I'll try to but I'm not that good at scripting in WaW. TBH, never even bothered doing it. I know how to do some basic things and I can make like my own perks and stuff but that's mostly copy & paste, change some stuff & done. Still though, I'll look through some documentation and I'll see what I can do. EDIT: I propably won't get to scripting untill the weekend, quite bussy with school...
Last Edit: September 18, 2013, 12:32:29 pm by JR-Imagine
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.