Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: MakeCents on September 02, 2015, 03:04:53 am
Title: Zombie Counter, with menu, not hud
Post by: MakeCents on September 02, 2015, 03:04:53 am
This tut helps you create a zombie counter via menu file, so it doesn't use any hud elements. It uses your hud.menu file to make the zombie counter, three added lines to your _zombiemode_spawner.gsc, and add one line to your mod.csv (if needed). If you are using dogs, instructions are at the bottom for that.
itemDef { name "playerscores" rect 0 0 100 0 ownerdraw CG_COMPETITIVE_MODE_SCORES visible 1 } itemDef { name "zombiecounter" rect 100 70 0 0 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM textscale .5 textstyle ITEM_TEXTSTYLE_SHADOWED textfont UI_FONT_OBJECTIVE textalign ITEM_ALIGN_CENTER forecolor 1 0 0 1 exp text ("Zombies Left: " + dvarInt("zombie_counter")) visible when (dvarInt("zombie_counter") > 0); decoration } }
(If you like, you can change visible when (dvarInt("zombie_counter") > 0); to visible 1 to always see the counter)
2. In root/raw/_zombiemode_spawner.gsc, or in your root/mods/mapname/maps/_zombiemode_spawner.gsc, find: 3. Change it to this: 4. then find this: 5. and change it to this:
6. Add this to your mod.csv, if you don't have it already here or in another csv:
7. Build mod. Count Dogs
If you want to count dogs too: 1. Open _zombiemode_dogs.gsc, in root/raw/maps, or in root/mods/mapname/ and find: 2. change it to this:
Title: Re: Zombie Counter, with menu, not hud
Post by: thezombieproject on September 02, 2015, 03:31:58 am
great work again man, ill be using this on Atlas Labs!
Title: Re: Zombie Counter, with menu, not hud
Post by: Yehboi on December 22, 2018, 04:10:37 am
didn't work for me. when i build mod, in notepad it says "the file has been modified...blah blah reload" then the /meufile,ui/hudd.menu is removed
Title: Re: Zombie Counter, with menu, not hud
Post by: Yehboi on December 22, 2018, 04:18:10 am
i fixed it but now no zombies spawn... lol i give up