Adding Debris That Costs More Than 2000

From CustomCoD Wiki

Jump to: navigation, search

This tutorial will show you how to change the price of a zombie blocker more than 2000.

Radiant

First you want to go to radiant and make your blocker. To do that right click on the 2D grid and go to script>model or script>brushmodel. Then assign it whatever model or brushmodel your want.

Now shift-left click and hit the N key.

Now give it the keys and values of

Key

script_linkTo

Value

Add whatever you want, but make sure its the same on the script struct's script_linkname like 1 is a good number to use.

Key

spawnflags

Value

1
targetname
debris01

Add what ever you want make sure its the same on the trigger's target. Lets do debris01 for example.

  • These are optional cool effects.
script_firefx                poltergeist
script_fxid                           large_ceiling_dust
script_noteworthy                jiggle

Now right click on the 2D Grid and go to script>struct. This is where the debris will move to.

Now shift-click and hit the N key.

Key

script_linkname

Value Make sure this is the same as the 'brushmodel's or model's script_linkto, 1 is a good example.

Now click on the 2D grid and go to trigger>use. Put it where you want the player to be able to buy and remove the blocker from.

Now shift-click and hit the N key.

Key

targetname

Value

zombie_debris

Key

zombie_cost

Value

4000

Whatever you want but make sure it is the same and the string in the zombie.str and the line in the _zombiemode.gsc Lets take 4000 as an example.

Key

target

Value

debris01

The same as the brushmodels or models targetname. Debris01 was our example.

Strings

Now go to the [Root]raw/english/localizedstrings folder open up the zombie.str.

Make a string like this

REFERENCE           BUTTON_BUY_CLEAR_DEBRIS_4000
LANG_ENGLISH        "Press & hold &&1 to Clear Debris [Cost: 4000]"
Image:Note.pngNote: You can make the 4000 in both lines whatever you want as long as they are the same as the triggers zombie_cost and the _zombiemode.gsc line that we are about to add.

Raw/Maps

Now go to your [Root]raw/maps and open up your _zombiemode.gsc and go down to the debris section about at line 278.

Make a string like this

add_zombie_hint( "default_buy_debris_4000", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_4000" );
Image:Note.pngNote: You can make the 4000 in both spots of this string whatever you want as long as they are the same as the trigger's zombie_cost and the zombies.str two strings we just added before.

Hope this adds some difficulty to your map.

Tutorial by, CoDMapper

Personal tools
Call of Duty: Black Ops
Call of Duty: World at War