Weapons that use health as Ammo.

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Killer_Of_Doom
Posts: 138
Joined: Sat Jun 18, 2005 6:52 pm
Location: Ireland

Weapons that use health as Ammo.

Post by Killer_Of_Doom »

Hi, i just want to know if there's a way to use the players health as ammo :?:
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

I think the only way is to use A_Takeinventory
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

DamageThing can be used to take health from the player. But this also subtracts from the armor. Currently the only other method is using SetActorProperty inside an ACS script.
User avatar
Killer_Of_Doom
Posts: 138
Joined: Sat Jun 18, 2005 6:52 pm
Location: Ireland

Post by Killer_Of_Doom »

Okay, thanks! :D
dennisj1
Posts: 399
Joined: Sun Jan 11, 2004 1:46 pm
Location: Superior, WI

Post by dennisj1 »

I thought Strife's Sigil used health as ammo. Can't you derive off that?
User avatar
Pure Hellspawn
Posts: 281
Joined: Sun Apr 24, 2005 6:06 pm
Location: RIT
Contact:

Post by Pure Hellspawn »

dennisj1 wrote:I thought Strife's Sigil used health as ammo. Can't you derive off that?
It's also possible to do that in EDGE. I saw it in a TC for EDGE (the one with Babel)
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Post by Xaser »

I just have the weapon fire in invisible projectile with 0 speed that deals explosive damage. Since projectiles originate from the player's exact center, giving it an explosion radius of 1 and an explosion damage value of whatever amount of health you want to take away. Although now that you mention it, Damagething would work just as well, only easier, so use that. :P
User avatar
Medricel
Posts: 1138
Joined: Sat Nov 20, 2004 9:47 am

Post by Medricel »

Xaser wrote:I just have the weapon fire in invisible projectile with 0 speed that deals explosive damage. Since projectiles originate from the player's exact center, giving it an explosion radius of 1 and an explosion damage value of whatever amount of health you want to take away. Although now that you mention it, Damagething would work just as well, only easier, so use that. :P
But that'll still whittle away at the player's armor: a rather unintended side-effect.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Post by Xaser »

I wish there was a way around that, seeing that Zen Dynamics has such a weapon... well, the next version of it will, that is. :P
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

dennisj1 wrote:I thought Strife's Sigil used health as ammo. Can't you derive off that?
No. That is because it doesn't really use health as ammo. Instead it damages the player when firing.
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

hows this:

A_FireCustomMissile("SigilDamager",0,0,0,0)

SigilDamager
{
Speed 0
PROJECTILE
+MISSILE
ExplosionDamage 25
ExplosionRadius 5
States
{
Spawn:
TNT1 A 5 A_Explode
Stop
}
}

It works for me.......
User avatar
solarsnowfall
Posts: 1581
Joined: Thu Jun 30, 2005 1:44 am

Post by solarsnowfall »

Uh, that just looks like a 0 range missile damager. It doesn't use health, it takes it because it explodes when shot. I guess it's a question of weather you want to fire that last shot and die from it.
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

if you were dumb enough too..........
User avatar
solarsnowfall
Posts: 1581
Joined: Thu Jun 30, 2005 1:44 am

Post by solarsnowfall »

Heh, set it to a monster and watch it commit suicide...
Locked

Return to “Editing (Archive)”