Add ammo and Health


(Kynval) #21

hey…
i see you are very good :smiley:
and i have next small request…

Can you add to this script:


(Kynval) #22

hey…
i see you are very good :smiley:
and i have next small request…

Can you add to this script:
SUPPLYDEPOT2

ammo and healh here:
ammo on left, hp on right site:
positions:
(-3 2146 160) : -91
(-3 2589 160) : 90

big thanks… mates =]


(Kynval) #23

[QUOTE=Kynval;200787]hey…
i see you are very good :smiley:
and i have next small request…

Can you add to this script:
SUPPLYDEPOT2

ammo and healh here:
ammo on left, hp on right site:
positions:
(-3 2146 160) : -91
(-3 2589 160) : 90

big thanks… mates =][/QUOTE]

Can you help me again please? :smiley:


(valkyr) #24

		// ---------------------------
		// Axis command room health+ammo
		// ---------------------------
		// TOI
		create
		{
			classname "trigger_objective_info"
			scriptname "axis-command-room/health+ammo/TOI"
			target "axis-command-room/health+ammo/CM-marker"
			customimage "gfx/limbo/cm_healthammo"
			shortname "Health and Ammo Cabinets"
			track "the Health and Ammo Cabinets"
			spawnflags "35"
			origin "-8 2368 160"
			mins "-56 -240 -64"
			maxs "56 240 64"
		}

		// CM Marker
		create
		{
			classname "misc_commandmap_marker"
			scriptname "axis-command-room/health+ammo/CM-marker"
			targetname "axis-command-room/health+ammo/CM-marker"
			origin "-8 2368 160"
		}

		// Health
		create
		{
			classname "misc_cabinet_health"
			scriptname "axis-command-room/health-cabinet"
			targetname "axis-command-room/health-cabinet"
			origin "-8 2136 96"
			angle "90"
		}
		
		create
		{
			classname "trigger_heal"
			scriptname "axis-command-room/health-cabinet/trigger"
			target "axis-command-room/health-cabinet"
			healtotal "400"
			origin "-8 2136 96"
			mins "-27 0 0"
			maxs "27 25 64"
		}
		
		// Ammo
		create
		{
			classname "misc_cabinet_supply"
			scriptname "axis-command-room/ammo-cabinet"
			targetname "axis-command-room/ammo-cabinet"
			angle "-90"
			origin "-28 2596 96"
		}
		
		create
		{
			classname "trigger_ammo"
			scriptname "axis-command-room/ammo-cabinet/trigger"
			target "axis-command-room/ammo-cabinet"
			ammototal "20"
			origin "-28 2596 96"
			mins "-27 -25 0"
			maxs "27 0 64"
		}


(Kynval) #25

big thanks! Its working master :smiley:
but… i forget about one more packets… sorry…
can you add one more ammo and hp packs right here:

(705 -1698 80) : 90
(777 -1698 80) : 89


(valkyr) #26

pfft.

Someone else help this man, please.


(Qualmi) #27

kynval…start to use your brain pls. you examined some origins with viewpos, now start thinking and read the script.


(Kynval) #28

ok… sorry… but thanks for every think…
i will try.

thanks valkyr


(Qualmi) #29

[QUOTE=Kynval;200935]i will try.[/QUOTE] no you wont. after all your efforts here in this thread which included the search for the thread i proposed to following simple instructions. no you wont - dont lie to us.

[QUOTE=Kynval;200935]thanks valkyr[/QUOTE] he was not the only one who tried to help. and to get a bill like that is really beyond my good will. i really hope noone will never ever gonna help in any freaking way here in this forum after seeing this thread here and after seeing how you treat the ones who tried to help and to spread bills like that. no help from me anymore !


(Kynval) #30

easy man…

i don’t understand one:
i cheaked positions on supplydepot, and there was:

(-3 2146 160) : -91
(-3 2589 160) : 90

but in your script is:

origin “-8 2368 160”

eeee?
so, how can I make it alone, if it is so… different positions :confused:


(valkyr) #31

/viewpos only gives an approximate position. You might be able to add things doing it that way, but to get the exact position you need to use Radiant to view the map source.

Using my example from the previous script, try using your own origins in place of those below.

Of course you need to know what each section of the script does, but that’s why I commented it.

  • [li] This adds the “You are near the health and ammo cabinets” pop-up on the screen :
    [/li]

    // --------------------------- // Axis command room health+ammo // --------------------------- // TOI create { classname "trigger_objective_info" scriptname "axis-command-room/health+ammo/TOI" target "axis-command-room/health+ammo/CM-marker" customimage "gfx/limbo/cm_healthammo" shortname "Health and Ammo Cabinets" track "the Health and Ammo Cabinets" spawnflags "35" origin "-8 2368 160" mins "-56 -240 -64" maxs "56 240 64" }


    [li] This adds the command map icon. It’s linked to the trigger above.
    [/li]

    // CM Marker create { classname "misc_commandmap_marker" scriptname "axis-command-room/health+ammo/CM-marker" targetname "axis-command-room/health+ammo/CM-marker" origin "-8 2368 160" }


    [li] This adds the actual cabinet entity, and a trigger around it to give health when you’re near it.
    [/li]

    // Health create { classname "misc_cabinet_health" scriptname "axis-command-room/health-cabinet" targetname "axis-command-room/health-cabinet" [B]origin "-8 2136 96"[/B] angle "90" } create { classname "trigger_heal" scriptname "axis-command-room/health-cabinet/trigger" target "axis-command-room/health-cabinet" healtotal "400" [B]origin "-8 2136 96"[/B] mins "-27 0 0" maxs "27 25 64" }


    [li] And the same for ammo…
    [/li]

    // Ammo create { classname "misc_cabinet_supply" scriptname "axis-command-room/ammo-cabinet" targetname "axis-command-room/ammo-cabinet" angle "-90" [B]origin "-28 2596 96"[/B] } create { classname "trigger_ammo" scriptname "axis-command-room/ammo-cabinet/trigger" target "axis-command-room/ammo-cabinet" ammototal "20" [B]origin "-28 2596 96"[/B] mins "-27 -25 0" maxs "27 0 64" }

You’ll need to duplicate all of that, whilst changing the origins of the health and ammo sections (in bold) to the origins you got with /viewpos.


(Kynval) #32

okay… i will try… thanks mate


(Kynval) #33

hej… something wrong XDDDDD

look on it! <hahaha>

its a script:


// kynval
				

				create
				{
					classname "trigger_objective_info"
					scriptname "axis-command-room/health+ammo/TOI"
					target "axis-command-room/health+ammo/CM-marker"
					customimage "gfx/limbo/cm_healthammo"
					shortname "Health and Ammo Cabinets"
					track "the Health and Ammo Cabinets"
					spawnflags "35"
					origin "705 -1698 80"
					mins "-56 -240 -64"
					maxs "56 240 64"
				}

				// CM Marker
				create
				{
					classname "misc_commandmap_marker"
					scriptname "axis-command-room/health+ammo/CM-marker"
					targetname "axis-command-room/health+ammo/CM-marker"
					origin "705 -1698 80"
				}

				// Health
				create
				{
					classname "misc_cabinet_health"
					scriptname "axis-command-room/health-cabinet"
					targetname "axis-command-room/health-cabinet"
					origin "705 -1698 80"
					angle "90"
				}
				
				create
				{
					classname "trigger_heal"
					scriptname "axis-command-room/health-cabinet/trigger"
					target "axis-command-room/health-cabinet"
					healtotal "400"
					origin "705 -1698 80"
					mins "-27 0 0"
					maxs "27 25 64"
				}
				
				// Ammo
				create
				{
					classname "misc_cabinet_supply"
					scriptname "axis-command-room/ammo-cabinet"
					targetname "axis-command-room/ammo-cabinet"
					angle "-90"
					origin "777 -1698 80"
				}
				
				create
				{
					classname "trigger_ammo"
					scriptname "axis-command-room/ammo-cabinet/trigger"
					target "axis-command-room/ammo-cabinet"
					ammototal "20"
					origin "777 -1698 80"
					mins "-27 -25 0"
					maxs "27 0 64"
				}


players can take a ammo but HP not
tell me, what a number is telling about height 706 , -1698 , 56 ?

I’m waiting for suggestions :stuck_out_tongue:


(Kynval) #34

so… i made a change in script.

its a script:

// kynval
				

		create
		{
		classname "trigger_objective_info"
		scriptname "axis-command-room/health+ammo/TOI"
		target "axis-command-room/health+ammo/CM-marker"
		customimage "gfx/limbo/cm_healthammo"
		shortname "Health and Ammo Cabinets"
		track "the Health and Ammo Cabinets"
		spawnflags "35"
		origin "706 -1698 56"
		mins "-56 -240 -64"
		maxs "56 240 64"
		}

				
	 create
		{
		classname "misc_cabinet_supply"
		origin "706 -1698 56"
		mins "0 0 0"
		maxs "90 90 50"
		angle "90"
		scriptname "main_ammocabinet"
		targetname "main_ammocabinet"
		}
		
	create
		{
		classname "misc_cabinet_health"
		origin "780 -1698 56"
		mins "0 0 0"
		maxs "90 90 50"
		angle "90"
		scriptname "main_healthcabinet"
		targetname "main_healthcabinet"
		}
		
	create
		{
		classname "trigger_ammo"
		origin "706 -1698 56"
		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 "780 -1698 56"
		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 "706 -1698 56"
		scriptname "main_hacabinet_cm_marker"
		targetname "main_hacabinet_cm_marker"
		}
 

and now its looks like:

it is still faying and health cabinets are reversed :stuck_out_tongue:
i don’t know why…


(-SSF-Sage) #35

Keep trying and it will work at some point. And you also might learn something.


(Kynval) #36

yes i will
just tell me how reversed it :slight_smile:

the cabinets are in this site, where I’m watching in time when i put /viewpos?
because i allways looked in this way… so… i will cheack it tomorrow… good night :wink:


(Kynval) #37

so…
now i have to change reversed only…
i can take ammo and health, its on the ground and is nice…

its a code:

 // kynval				

				create
{
		classname "trigger_objective_info"
		customimage "gfx/limbo/cm_healthammo"
		infoAllied "Health and Ammo cabinets"
		infoAxis "Health and Ammo cabinets"
		origin "700 -1698 20"
		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"
		}

				
	 create
		{
		classname "misc_cabinet_supply"
		origin "698 -1698 17"
					mins "-27 -25 0"
					maxs "27 0 64"
		angle "90"
		scriptname "main_ammocabinet"
		targetname "main_ammocabinet"
		}
		
	create
		{
		classname "misc_cabinet_health"
		origin "788 -1698 17"
					mins "-27 -25 0"
					maxs "27 0 64"
		angle "90"
		scriptname "main_healthcabinet"
		targetname "main_healthcabinet"
		}
		
	create
		{
		classname "trigger_ammo"
		origin "698 -1698 17"
					mins "-27 -25 0"
					maxs "27 0 64"
		ammototal "20"
		scriptname "main_trigger_ammo"
		targetname "main_trigger_ammo"
		target "main_ammocabinet"
		}
		
	create
		{
		classname "trigger_heal"
		origin "788 -1698 17"
					mins "-27 -25 0"
					maxs "27 0 64"
		healtotal "400"
		scriptname "main_trigger_heal"
		targetname "main_trigger_heal"
		target "main_healthcabinet"
		}
		
	create
		{
		classname "misc_commandmap_marker"
		origin "706 -1698 10"
		scriptname "main_hacabinet_cm_marker"
		targetname "main_hacabinet_cm_marker"
		}
   

and this is a screen:


(Nail) #38

congratulations
:cool:


(phisherman) #39

[QUOTE=Nail;200995]congratulations[/QUOTE]It’s still not in the right direction, is it? Do I have problems with my eyes? o.O


(Loffy) #40

Try:

angle “180”

(or some other value)