Add ammo and Health


(Kynval) #1

Hi…
Someone can help me, and make script to add ammo and health packs?
In oasis in place:

HERE:

OR HERE:

please heeelp me ;]
THX guys :cool:


(nUllSkillZ) #2

Do you want to change the map in GTKRadiant?
Or do you want to add health with an etpro mapscript?


(Kynval) #3

or etpro mapscript
or oasis.script

or however how you know how make it =]


(Qualmi) #4

you need 2 things for this. a mapscript, and radiant. the radiant youll need to check origins and stuff, to make them fit proper. the mapscript you already know. search for a thread named “how to change things afterwards”. me was the creator. there were some helpful answers within.


(hellreturn) #5

Add this in your map script and change the origin and angle of racks by using \viewpos

create
		{
		classname "misc_cabinet_supply"
		origin "-2120 6170 545"
		mins "0 0 0"
		maxs "90 90 50"
		angle "90"
		scriptname "main_ammocabinet"
		targetname "main_ammocabinet"
		}
		
	create
		{
		classname "misc_cabinet_health"
		origin "-1990 6170 545"
		mins "0 0 0"
		maxs "90 90 50"
		angle "90"
		scriptname "main_healthcabinet"
		targetname "main_healthcabinet"
		}
		
	create
		{
		classname "trigger_ammo"
		origin "-2120 6170 545"
		mins "-20 0 0"
		maxs "90 90 50"
		ammototal "20"
		scriptname "main_trigger_ammo"
		targetname "main_trigger_ammo"
		target "main_ammocabinet"
		}
		
	create
		{
		classname "trigger_heal"
		origin "-1990 6170 545"
		mins "-20 0 0"
		maxs "90 90 50"
		healtotal "400"
		scriptname "main_trigger_heal"
		targetname "main_trigger_heal"
		target "main_healthcabinet"
		}
		
	create
		{
		classname "misc_commandmap_marker"
		origin "-2110 6170 545"
		scriptname "main_hacabinet_cm_marker"
		targetname "main_hacabinet_cm_marker"
		}
		
	create
		{
		classname "trigger_objective_info"
		customimage "gfx/limbo/cm_healthammo"
		infoAllied "Health and Ammo cabinets"
		infoAxis "Health and Ammo cabinets"
		origin "-1990 6170 545"
		mins "0 0 0"
		maxs "110 110 100"
		scriptname "main_hacabinet_toi"
		shortname "Health and Ammo Cabinets"
		spawnflags "35"
		target "main_hacabinet_cm_marker"
		targetname "main_hacabinet_toi"
		track "the Health and Ammo Cabinets"
		}


(Kynval) #6

thx…
i have to take oasis.script from pak0 or…?
Can I add this somewhere in oasis.script or it must be after something… its important?
and can I add this to etpromapscripts?

(my server is running on etpub)


(phisherman) #7

[QUOTE=Kynval;200597]i have to take oasis.script from pak0 or…?
Can I add this somewhere in oasis.script or it must be after something… its important?[/quote]You dont need to edit the existing script-File, just create a new one.

and can I add this to etpromapscripts?
Yuppie, you dont need to place it in a pk3-file.

Ah and btw, I’m a beginner with this too, so I hope I dont give wrong answers. :-/ But this works with the mapscripts-directory for sure, and the scriptfixes I saw did not contain everything the original script-file contained.


(Kynval) #8

something wrong…
I made oasis.script
I added it to: etpromapscripts

and:

after map, next maps aren’t running
after reset, server wasn’t running… not alive. just DOWN…

so something wrong :confused:


(Qualmi) #9

…and did you at least play oasis with some fresh, funcy supply cabinets ?

did you defined the path of the mapscriptsfolder in your server.cfg ?

post your oasis.script pls !


(hellreturn) #10

[QUOTE=Qualmi;200627]
post your oasis.script pls ![/QUOTE]

+1. Post it and we can have a look.


(Kynval) #11

mine sicript is like here:

I copied it only…
etpromapscipts is working… i have fueldump.sript and its working…
so its must be problem with its code
with this script server doesn’t work…


(hellreturn) #12

Ok little more explanation this time rather then throwing the code which I use.

  1. Open pak0.pk3 go to maps and extract oasis.script.

  2. Open oasis.script using notepad++ or wordpad.

  3. Now in oasis.script you will see this:

game_manager
{
	spawn
	{
		accum 1 set 0		// State of objective number one
		accum 5 set 0		// Corrent number of Pak 75mm guns destroyed
		accum 6 set 0		// Current number of water pumps built
		accum 7 set 0		// Value used in checking whether or not to announce "Axis have damaged both water pumps!"

		globalaccum 5 set 0
		globalaccum 6 set 0

		// Game rules
		wm_axis_respawntime	30
		wm_allied_respawntime	20
		wm_number_of_objectives 8
		wm_set_round_timelimit	30

[B]THEIR WILL BE MORE I AM JUST POSTING TOP PART.[/B]

Now insert the script which I posted in previous thread after this:

        spawn
        {

Script which I posted for ammo and health racks works fine for me. You just need to change the location and angle as I said using \viewpos.

Now upload the full oasis.script with changes in your mod script folder.

If you still have any problem on how to use it let us know.


(Kynval) #13
  1. I know
  2. I’m not so stupid xD

i will try now with your help.

but what is this:

\viewpos :o


(Kynval) #14

after changes and restart server:

status of server: Offline

hej hellreturn… positions on your posts are how I want? or not?


(Kynval) #15

its mine oasis.script now:

spawn
        {


create
		{
		classname "misc_cabinet_supply"
		origin "-2120 6170 545"
		mins "0 0 0"
		maxs "90 90 50"
		angle "90"
		scriptname "main_ammocabinet"
		targetname "main_ammocabinet"
		}
		
	create
		{
		classname "misc_cabinet_health"
		origin "-1990 6170 545"
		mins "0 0 0"
		maxs "90 90 50"
		angle "90"
		scriptname "main_healthcabinet"
		targetname "main_healthcabinet"
		}
		
	create
		{
		classname "trigger_ammo"
		origin "-2120 6170 545"
		mins "-20 0 0"
		maxs "90 90 50"
		ammototal "20"
		scriptname "main_trigger_ammo"
		targetname "main_trigger_ammo"
		target "main_ammocabinet"
		}
		
	create
		{
		classname "trigger_heal"
		origin "-1990 6170 545"
		mins "-20 0 0"
		maxs "90 90 50"
		healtotal "400"
		scriptname "main_trigger_heal"
		targetname "main_trigger_heal"
		target "main_healthcabinet"
		}
		
	create
		{
		classname "misc_commandmap_marker"
		origin "-2110 6170 545"
		scriptname "main_hacabinet_cm_marker"
		targetname "main_hacabinet_cm_marker"
		}
		
	create
		{
		classname "trigger_objective_info"
		customimage "gfx/limbo/cm_healthammo"
		infoAllied "Health and Ammo cabinets"
		infoAxis "Health and Ammo cabinets"
		origin "-1990 6170 545"
		mins "0 0 0"
		maxs "110 110 100"
		scriptname "main_hacabinet_toi"
		shortname "Health and Ammo Cabinets"
		spawnflags "35"
		target "main_hacabinet_cm_marker"
		targetname "main_hacabinet_toi"
		track "the Health and Ammo Cabinets"
		}

sorry… I spammed :confused:


(Qualmi) #16

hihi…the origins probably cause a leak :stroggbanana:

thats why you should use viewpos. its a console command. to make it step by step, caus i simply assume you dont know this:

start your et.exe, go to console, type

\g_gametype 2
\sv_pure 0
\devmap oasis

go to the position of your choice and type

\viewpos

what you get is a nice little vector. its a 3d vector. this is where your cabinets will appear if you apply those coordinates to your script.

and again ? you make so many mistakes. can you pls post your WHOLE OASIS.SCRIPT. otherwise when this is your whole script, then its simply wrong.


(Kynval) #17

ok… so mine positions are here:

(8121 4578 -412) : 91
(8126 4765 -407) : 91

or

(8330 3917 -415) : 98
(8388 3917 -415) : 159

and what with this now?
How looks full script? :confused:


(valkyr) #18

Here’s a working script that adds what you want :


		// ---------------------------
		// West arch health+ammo
		// ---------------------------
		// TOI
		create
		{
			classname "trigger_objective_info"
			scriptname "west-arch/health+ammo/TOI"
			target "west-arch/health+ammo/CM-marker"
			customimage "gfx/limbo/cm_healthammo"
			shortname "Health and Ammo Cabinets"
			track "the Health and Ammo Cabinets"
			spawnflags "35"
			origin "8128 4680 -428"
			mins "-56 -104 -60"
			maxs "56 104 60"
		}

		// CM Marker
		create
		{
			classname "misc_commandmap_marker"
			scriptname "west-arch/health+ammo/CM-marker"
			targetname "west-arch/health+ammo/CM-marker"
			origin "8132 4674 -451"
		}

		// Health
		create
		{
			classname "misc_cabinet_health"
			scriptname "west-arch/health-cabinet"
			targetname "west-arch/health-cabinet"
			origin "8131 4777 -472"
			angle "-90"
		}
		
		create
		{
			classname "trigger_heal"
			scriptname "west-arch/health-cabinet/trigger"
			target "west-arch/health-cabinet"
			healtotal "400"
			origin "8131 4777 -472"
			mins "-27 -25 0"
			maxs "27 0 64"
		}
		
		// Ammo
		create
		{
			classname "misc_cabinet_supply"
			scriptname "west-arch/ammo-cabinet"
			targetname "west-arch/ammo-cabinet"
			angle "90"
			origin "8132 4569 -478"
		}
		
		create
		{
			classname "trigger_ammo"
			scriptname "west-arch/ammo-cabinet/trigger"
			target "west-arch/ammo-cabinet"
			ammototal "20"
			origin "8132 4569 -478"
			mins "-27 0 0"
			maxs "27 25 64"
		}
		
		// ---------------------------
		// Storage room health+ammo
		// ---------------------------
		// TOI
		create
		{
			classname "trigger_objective_info"
			scriptname "storage-room/health+ammo/TOI"
			target "storage-room/health+ammo/CM-marker"
			customimage "gfx/limbo/cm_healthammo"
			shortname "Health and Ammo Cabinets"
			track "the Health and Ammo Cabinets"
			spawnflags "35"
			origin "8357 3858 -424"
			mins "-59 -156 -56"
			maxs "59 156 56"
		}

		// CM Marker
		create
		{
			classname "misc_commandmap_marker"
			scriptname "storage-room/health+ammo/CM-marker"
			targetname "storage-room/health+ammo/CM-marker"
			origin "8355 3920 -412"
		}

		// Health
		create
		{
			classname "misc_cabinet_health"
			scriptname "storage-room/health-cabinet"
			targetname "storage-room/health-cabinet"
			origin "8324 3929 -480"
			angle "-90"
		}
		
		create
		{
			classname "trigger_heal"
			scriptname "storage-room/health-cabinet/trigger"
			target "storage-room/health-cabinet"
			healtotal "400"
			origin "8324 3929 -480"
			mins "-27 -25 0"
			maxs "27 0 64"
		}
		
		// Ammo
		create
		{
			classname "misc_cabinet_supply"
			scriptname "storage-room/ammo-cabinet"
			targetname "storage-room/ammo-cabinet"
			angle "-90"
			origin "8386 3927 -480"
		}
		
		create
		{
			classname "trigger_ammo"
			scriptname "storage-room/ammo-cabinet/trigger"
			target "storage-room/ammo-cabinet"
			ammototal "20"
			origin "8386 3927 -480"
			mins "-27 -25 0"
			maxs "27 0 64"
		}

I’ve attached a full oasis.script, which is the default ETPro script with the above added. Unzip it into in your etpromapscripts folder (where you have your working fueldump.script)


(Kynval) #19

TY! i will try it…
just wait the moment :stuck_out_tongue:


(Kynval) #20

yeah… its working… very big thanks for you mates! =]