check player shot missile hitten

Discuss all aspects related to modding Zandronum here.
Post Reply
rico345
 
Posts: 68
Joined: Sun Jul 08, 2012 2:13 pm
Location: Republic Of Korea

check player shot missile hitten

#1

Post by rico345 » Sat Feb 01, 2014 6:00 am

Is there a way to check that Missile from player was hitten?
(I want print HUD effects on hit)
Last edited by rico345 on Sat Feb 01, 2014 6:01 am, edited 1 time in total.

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: check player shot missile hitten

#2

Post by Klofkac » Sat Feb 01, 2014 8:38 am

Well, if you mean how to check if the missile shot by player hit its target, there are states XDeath which triggers when projectile hits a bleeding actor, and state Crash which activates on hitting a non-bleeding actor (+NOBLOOD). You can then use these states to activate ACS.
𝕂𝕝𝕠𝕗𝕜𝕒𝕔

User avatar
Ænima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

RE: check player shot missile hitten

#3

Post by Ænima » Sat Feb 01, 2014 12:51 pm

I did this in Super Skulltag by giving the projectiles a unique DamageType and then making custom pain states in the player actor which call ACS_ExecuteAlways.


Edit:
Nevermind I guess you meant something different.
Last edited by Ænima on Sat Feb 01, 2014 5:52 pm, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: check player shot missile hitten

#4

Post by -Jes- » Sat Feb 01, 2014 2:51 pm

As defined on ZDoom Wiki's page about Projectiles:

Collision - State entered

Wall - Death
Bleeding actor - XDeath
Non-bleeding actor - Crash

These are what RGA2 coop use to give the player 'hit' crosshairs.
For bullet, melee and other assorted puff type attacks, see the related page on ZDoom.
Last edited by -Jes- on Sat Feb 01, 2014 2:51 pm, edited 1 time in total.

Post Reply