Latest topics
» Help with trigger_usescript
Thu Sep 22, 2016 8:16 am by flanagon

» New Lugormod U# (Windows + Linux)
Thu Sep 22, 2016 7:03 am by Ufo

» Single Round Team Quest
Thu Jul 23, 2015 10:39 pm by agent6141

» iobject terminal
Thu Sep 25, 2014 2:39 pm by flanagon

» Usefull Downloads
Thu Aug 07, 2014 12:35 am by Kimmeh

» Television
Thu Jan 09, 2014 2:25 am by Mr. Swister

» Lugormod U# on server
Wed Jan 08, 2014 11:08 pm by Shadow

» Teleporter with effects
Thu Jan 02, 2014 5:51 am by Pierry

» Some possibly useful addons
Thu Jan 02, 2014 5:50 am by Pierry

Heal Tanks

Go down

Heal Tanks

Post by Zkyo on Wed Mar 31, 2010 9:35 am

Jump into these to heal yourself.

First off, place a tank, make it not solid.
/place misc_model_breakable 0 model,map_objects/hoth/bacta_tank

Now, go in it, and aim straight into the middle of it and enter this.
/place misc_model_breakable 0 model,map_objects/nar_shaddar/table01,spawnflags,1

Nudge that table around so that it fits in the bottom portion of the tank, where you can not see it. Next, place a trigger in the middle of the tank.
/place trigger_multiple 0 maxs,15 15 30,mins,15 -15 -30,target,heal

Now, in the same spot, place the floor, ammo, and health units way below the ground. I suggest adding 2 shield and 3 ammo units to even out the recharge speed.
/place misc_shield_floor_unit  -5000 targetname,heal,nodrain,1
/place misc_ammo_floor_unit -5000 targetname,heal,nodrain,1
/place misc_model_health_power_converter –5000 targetname,heal

Optional – Message
/place target_print * targetname,heal,spawnflags,4,message,\n\n\n\n\n\n\n\n\n\n\n\n\n\n^7[Charging ^1Health, ^4Armor, ^7and ^3Ammo^7]
Now just hop in the tank to charge your health, armor, and ammo. Very Happy

Optional Part – Separate Tanks
Place 3 separate tanks, tables, and triggers. Have the triggers’ targets be different. Ex: heal_health, heal_shield, heal_ammo.

Set the appropriate targetnames for each one

Place messages if you want. These are logical, so you can do this without hurting the entity count.
/place target_print * targetname,heal_health,spawnflags,4,message,\n\n\n\n\n\n\n\n\n\n\n\n\n\n^1[Charging Health]
/place target_print * targetname,heal_ammo,spawnflags,4,message,\n\n\n\n\n\n\n\n\n\n\n\n\n\n^3[Charging Ammo]
/place target_print * targetname,heal_shield,spawnflags,4,message,\n\n\n\n\n\n\n\n\n\n\n\n\n\n^4[Charging Armor]
There ya go, separate tanks with messages Very Happy

Note: the 14 \n has the message appear at the bottom of the screen, out of the main view.

Posts : 384
Join date : 2010-03-29
Age : 25
Location : Grand Rapids, Michigan, USA

View user profile

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum