Hello guys my name is xSanchez78 and today i have something that has rarely been seen, released, or used at all in the community. Today I have for you:
Tombstone
I have spent a few weels scripting this, making sure that the perk is exactly like black ops 2 town and tranzit, and has no glitched or bugs. And it is PERFECT!
Perk Features: If the game is solo, the machine dissappears and does nothing. If it is a coop game, the machine remains in the map and you can buy it. If you buy it and you go down into laststand mode, a tombstone spawns over you. if you get revived, the tombstone dissappears. If you bleedout, the tombstone remains as a powerup. Only you can pick it up, not your teammates. When you respawn, if you die, then you the tombstone dissappears. If you pick it up, you get all your perks and guns back.
Let's Get Started!
Xmodels:
This tutorial does not provide xmodels for you. It is up to you to export the xmodels, as posting them in download links is against the UGX Mods rules. But here is an Easy-To-Follow tutorial:
Follow that and you will learn how to port xmodels. The models you need are "bo2_zombie_vending_tombstone", "bo2_ch_tombstone1", "bo2_zombie_vending_tombstone_on", "bo2_t6_wpn_zmb_perk_bottle_tombstone_view", and "bo2_t6_wpn_zmb_perk_bottle_tombstone_world". The models in lime may not have the prefix "bo2_" but just look for these names and when you convert them, make sure they match or else this tutorial will not work properly. In mod.csv, be sure to add the following:
Weapons:
You are probably thinking, what do weapons have to do with this? Well the weapon I am talking about is the perk bottle that you drink when you buy the perk. If you exported all the models correctly in the first step, you will have the models needed. First, go to "root/raw/weapons/sp" and find "zombie_perk_bottle_jugg". Copy it and rename it to "zombie_perk_bottle_tombstone". Now open it with notepad, and find "GunModel". In the next set of slashes, it should say "zombie_perk_bottle_jugg". Rename this to "bo2_t6_wpn_zmb_perk_bottle_tombstone_view". Then find "WorldModel". Next to it, it should say "zombie_3rd_perk_bottle_jugg". Rename this to "bo2_t6_wpn_zmb_perk_bottle_tombstone_world". Save & Close. Now you have your weapon file. Place it in "root/mods/mapname/weapons/sp". In mod.csv, make sure to add this:
Radiant:
In radiant, you need to make your own prefab. First add a trigger_multiple. Add these KVP's targetname - audio_bump_trigger script_sound - perks_rattle
This will be the trigger where you go prone and it gives you 25 points. Now add a script_struct. Give it these KVP's targetname - perksacola script_sound - mx_tombstone_jingle
This will be the spot where it plays the perk jingle when it is idle. Now add a trigger_use. Give it these KVP's: targetname - vending_trigger_tombstone
This will be the trigger that the players use to buy the perk. Now add a script_model Give it these KVP's targetname - vending_tombstone model - bo2_zombie_vending_tombstone
This will be the actual perk model. Now just add a clip around your perk and you should have your perk prefab!
Images:
You need to get the perk shader yourself. Just make sure when you convert it that it is named this: "tombstone_vending_zombies".
Sounds:
The sounds are also up to you to get. The functions for playing sound are already in the script, you just need to do this: For the stinger sound, in the alias, make sure you call it "mx_tombstone_sting", and for the jingle call it "mx_tombstone_jingle".
Scripts:
Alright, you have done every other step, time for the last. Scripting. This is the hardest part, there is much to do. First, copy this script and name it to
"_zombiemode_perks_tombstone.gsc"
Now find this function "get_savable_perks()" In it find this code
These are the perks that you want Tombstone to be able to save. You need to make sure you include all the perks you want to be saved, and exclude the ones you want to be lost. As you can see Tombstone ( specialty_reconnaissance ) is not included because you are not able to save tombstone itself. Now find this function at the bottom "give_perk()". Find this
This is how tombstone gives back your perks. Make sure that all the perks you listed in "get_savable_perks()" have their own case in this list, and that they properly giveback the perk. Now for editing other scripts. Go into "_zombiemode.gsc". In "main()", call "maps\_zombiemode_perks_tombstone::init();" under this
Now you are done scripting!
Your Done!
Make sure you follow each step carefully. Always remember to watch for updates. The title will show if i have made an update on the specific date and everything. If you need help just comment or PM. Make sure you call everything in your mod builder and add everything as i said into mod.csv. This has been tested, but you may get errors because i quickly scripted the perk machine logic so that you wouldnt have to add it to your _zombiemode_perks.gsc like i did. I may have made some small syntax errors there so just let me know. Thanks everyone, please credit me, and peace!
if i remember in tranzit it appears right when you get down cause there was times that i picked the tombstone while still down(not a good idea lol)
Well how it works is you go down and you have to hold a certain key/button to set the tombstone and it will be there the next round and you get all of your stuff back exept tombstone.
Well how it works is you go down and you have to hold a certain key/button to set the tombstone and it will be there the next round and you get all of your stuff back exept tombstone.
ty man i needed this so i can make my own custom perks with your base just took out what i needed to make mine had to cred you on my dbz post ty great post
Last Edit: January 13, 2017, 02:33:53 am by AllMoDs