Map script help


([MoB]Seany) #1

I’m not a map maker by any means, but I was playing around with some scripts and decided to add an health/supply cabinet on a prexisting map. I got everything working fine, except I’m not sure how to properly get it to show up on the command map. I should also note that I’m only using notepad to work with etpro :bored:

Ok, now I want to get it to show up on the command map
I already have

game_manager
{
spawn
            {
create
		{
        targetname "ammo"
        scriptname "ammo"
        origin "-1373 -1100 192"
        classname "misc_cabinet_supply"
        angle "270"
        mins "-45 -45 -25"
        maxs "45 45 25"
        ammototal "100"
        modelscale "1"
        contents "1"
        clipmask "1"
        model "models/mapobjects/supplystands/stand_ammo.md3"
		}
create
		{
        target "ammo"
        ammototal "40"
        ammorate "1"
        origin "-1373 -1100 192"
        classname "trigger_ammo"
        targetname "ammoarea"
        scriptname "ammoarea"
        modelscale "1"
        contents "1"
        mins "-45 -45 -25"
        maxs "45 45 25"
        clipmask "1"
	  	}
create
		{
        targetname "health"
        scriptname "health"
        origin "-1488 -1175 192"
        classname "misc_cabinet_health"
        angle "360"
        mins "-45 -45 -25"
        maxs "45 45 25"
        modelscale "1"
        contents "1"
        clipmask "1"
        model "models/mapobjects/supplystands/stand_ammo.md3"
		}
create
		{
        target "health"
        scriptname "healtharea"
        targetname "healtharea"
        classname "trigger_heal"
        origin "-1488 -1175 192"
        healtotal "400"
        healrate "10"
        modelscale "1"
        contents "1"
        mins "-45 -45-25"
        maxs "45 45 25"
        clipmask "1"
		}
create
		{
        classname "trigger_objective_info"
        target "help_marker_toi"
        scriptname "ammo_info_toi"
        track "Health and Ammo Cabinets"
        targetname "ammo_info_toi"
        shortname "Health and Ammo Cabinets"
        spawnflags "is_healthammocabinet"
        customimage "gfx/limbo/cm_healthammo"
        origin "-1352 -1179 256"
        modelscale "1"
        contents "1"
        mins "-45 -45-25"
        maxs "45 45 25"
        clipmask "1"
	
		}
create
		{
        classname "misc_commandmap_marker"
        scriptname "help_marker_toi"
        targetname "help_marker_toi"
        contents "1"
        clipmask "1"
        origin "-1488 -1175 192"
		}
                 }
}

Its works and has a “You are near Health and Ammo” message, but what do I need to do to get it to show up ont he command map?
I did have script_mover parts as well before I removed them:

create
		{
	  targetname "ammo_clip"
	  scriptname "ammo_clip"
	  classname "script_mover"
	  spawnflags "2"
		}
create
		{
	  targetname "health_clip"
	  scriptname "health_clip"
	  classname "script_mover"
    	  spawnflags "2"
        	                }

But, no matter what properties i removed, it still said a model was required for script_mover. Is a script_mover class really that important? And if so, what do I need to do to fix it? If not, then what must be done for it to show up on the command map?
I’m not freaking out over this, but it’d be great if i could get it to show, any help is appreciated :smiley:


(EB) #2

try: spawnflags “35” or “51”

instead of: spawnflags “is_healthammocabinet”

create
{
classname “trigger_objective_info”
target “help_marker_toi”
scriptname “ammo_info_toi”
track “Health and Ammo Cabinets”
targetname “ammo_info_toi”
shortname “Health and Ammo Cabinets”
spawnflags “is_healthammocabinet”
customimage “gfx/limbo/cm_healthammo”
origin “-1352 -1179 256”
modelscale “1”
contents “1”
mins “-45 -45-25”
maxs “45 45 25”
clipmask “1”

  }

[edited] Good :drink: [/edited]


([MoB]Seany) #3

ok that works great, but now when i load the map with the custom script, everything else gets messed up. Like its in warmup and the supply cabinets work great, but the tank is unrepairable and face 90-degrees off…yet you can still use the mg on it. Well im highly confuzzled as I dont understand how my script can work fine but mess up all the other scripts already built into the map file :???:


(Ifurita) #4

What did you name your script and where did you put it? Is the rest of the original script there too?


([MoB]Seany) #5

caen.script, put it in my etpromapscripts. But the original script is built in right?


(Ifurita) #6

The script in etpromapscripts OVERRIDES the original script. It does not SUPPLEMENT it.


([MoB]Seany) #7

ah ok, ya thatd do it, thx :cool:


([MoB]Seany) #8

have you any idea why everything (original and added) would work fine in warmup but added disappears after start? :???:


(LaggingTom) #9

Because you touch yourself at night Seany.

It’s just because ETPro likes to play with you in warmup, like how you can blow the backdoor in warmup but not during the round.


([MoB]Seany) #10

so?

but anyway…that sux :disgust:


(mortis) #11

Did you create a script routine for the cabinet you created?

aka spawn, built final, death, etc…


([MoB]Seany) #12

it dosnt get built or destroyed…so no


(mortis) #13

Maybe it needs a setstate command to make it visible or invisible.