1-First download the file from the end of this post and extract it. Copy the contents of the "copy to raw folder" into your \game_root\raw\ folder, and copy the contents of the "copy to mods mapname folder" into the \game_root\mods\name-of-the-map-to-install-to\ (example: nazi_zombie_factory ). The download contains the models, animations and animtree for the chest, soundalias files. The FX files and the script ofcourse. Choose one:
2-Open your mapname.gsc file (you can find it in \raw\maps\), copy it into your mods\mapname\maps\ folder. --->if your using UGX-MOD it's already in your mods/mapname folder<----- Open it and find the line:
above this line you add:
and below this line you add:
An example of how it should look (your mapname.gsc might look diffent, so don't copy this code!)
example before:
example after:
3a. FOR NON UGX-MOD users: if you're using UGX-mod got to step 3b and ignore this one!! Open (first copy to mods folder from raw/maps and/or make a backup!) your _zombiemode_spawner and find the line:
right below that line, add these:
next go all the way to the end of the file and add this:
save and close the file.
3B. FOR UGX-MOD users!!: Open ugx_mod.iwd (with winRAR) go into the maps folder and find your _zombiemode_spawner.gsc (make a backup!!!) Open it, and find the line:
right below that line, add these:
next go all the way to the end of the file and add this:
save and close the file. winRAR will ask you iff you want to update the archive, click yes for your changes to have effect!
4.-go to your \game_root\zone_source\ folder and find yourmapname.csv Leave it where it is, so make a backup before editing. Open it and at the end add the following:
That should be the scripting part. In radiant open your map. First we'll make the chest locations:
-create a trigger_radius and give that the KVP's:
Click the spawnflags "AI_AXIS" and "NOTPLAYER", Make sure it's flat on the floor. The chest will appear with it's center on the center of the trigger_radius. The arrow (when rotating the trigger) points to the front side of the chest. Adjust the radius and height for that trigger to suit your needs. Every zombie that dies touching that trigger will feed the chest.
-Next create a script-brushmodel and give it the "clip" texture. you want to make it about 104 units wide (x-axis) and 90 units 'long' (in the y-axis) make sure it's high enough so players can't get on top off it and MORE IMPORTANT: make it so the square box representing the trigger_radius you created in the previous step is COMPLETELY INSIDE the clip-brush. Once you did all that give the clip-brush the KVP's:
You can simply copy these two entities for all the chest's you want to make. The kvp's for all chests are the same. (the stock script supports up to 6 chest locations without any editing, although you might want to set the amount of kills yourself. You can do this in the _soul_chest.gsc file (i've marked where to edit stuff). Every chest can have it's own radius and height.
-Next create 4 triggers (don't make more, that may cause issue's) where the players can pick up their reward when done filling up all the chest's (the ray-guns in the stock script). Make those trigger_use and give the KVP's:
The center of the trigger is where the ray-gun appears. The amount of players in the game is equal to the amount of ray-guns that will spawn. A player can only pick up a free ray-gun once, if they already have a raygun if refills the ammo for it, once.
Things you want to know: -The standard time-out timer for a chest is set to 50 seconds, you can change this in _soul_chest.gsc -this is what the stock kill-requirements are, look for these lines to change them. You can change the kills required for each chest in _soul_chest.gsc.
-Dog's do not fill up chest's (so a dog round probably times out a chest, like the robots closed a chest in origins when standing on it) -When 2 or more chest's are activated at the same time, and one of them time's out and closes while other chest's are completed the amount of kills needed when reactivating the timed-out chest could have increased one level. I'll explain: Say: you got 4 chest's first one activated require's 4 kills second one require's 8 kills third require's 12 kills fourth require's 16 kills
*when you activated chest 1 and 2 at the same time, and finished both of them without time-out's. it took you 12 kills, right!
*now when you activate chest 1 and 2 at the same time and let ONE of them time out: -In the case the first chest you activated times out, and you completed the second one, that one took you 8 kills. now when you reactivate chest 1 (or another remaining chest) that one will also require 8 kills to fill instead of 4.
-When the second chest you activated timed out, nothing changes
That should be the worst case scenario, i decided to keep it that way. It could add some difficulty for players that are trying to fill multiple chest's at the same time and fail..
That's all, remember to select all new files in the MOD-Builder when compiling!
Also note, i have no scripting background whatsoever. I'm doing this for a few months now, and if i did things that are 'not done' or if you find any bugs please let me know. Happy mapping/modding!
If you use this tutorial for your map credit is appreciated, and it would maybe even be more appreciated if you would send me a link or message if your level is released. Would love to check out other map's with my script's in it!!
Last Edit: December 30, 2013, 02:32:22 am by BluntStuffy
thank you sooo much mateee iv allreally added it to my map it work just fine thank you and could you make bo2-origins genater don't how spell it hmm there 6 of them u need power them all up so u can pap weapons and it give u a reward in your custom chest box so the real one anyways thank you
i take it you can change the ray gun right, i mean that wouldnt really be a worthwhile reward for me, rather have the mark 2 or something
Sure, you can change whatever you want.. Most changes would have to be made inside the _soul_chest.gsc that's included in the download. I've made some notes inside the file, telling what to change. Just scroll through and you'll see them..
So if I wanted to use this with the ugx mod how would I go about doing that? Cause I want to have this in my map but after completing it you get a hell retriever but only one shows up but all players can pick up one.
Not sure how this would work with UGX-mod, and i realize that's kind off lame when posting it on a UGX forum It's just my map doesn't use UGX, and i initially created if for my own map..
Perhaps if someone who's familiar with UGX-mod can tell right away if there are things that need to be changed. Otherwise i will make a test map this weekend and install UGX on that to see how it works out. I'll get back to it this weekend!
Not sure how this would work with UGX-mod, and i realize that's kind off lame when posting it on a UGX forum It's just my map doesn't use UGX, and i initially created if for my own map..
Perhaps if someone who's familiar with UGX-mod can tell right away if there are things that need to be changed. Otherwise i will make a test map this weekend and install UGX on that to see how it works out. I'll get back to it this weekend!
Thanks man. Funny thing is I was making 2 maps before origins came out and my 2nd map I was making is kinda like origins haha so it would fit in so good with that map
Tested with UGX mod, and made a few changes to the tutorial, shouldn't be shocking though.. Worked the first time! Let me know if you have any problems!
Tested with UGX mod, and made a few changes to the tutorial, shouldn't be shocking though.. Worked the first time! Let me know if you have any problems!
Thanks a lot man I will definitely be putting this in my map now.
The chest works fine but when it dissapear then the clip still remains. Should it not be deleted also ?? Otherwise there a clip blocking for no reason ?
The chest works fine but when it dissapear then the clip still remains. Should it not be deleted also ?? Otherwise there a clip blocking for no reason ?
Yep, it should disappear. Did you make sure the trigger was completely inside the clip like the screenshot below.