Page 1 of 1
missile with 0 damage but force to pain
Posted: Thu Nov 29, 2012 9:58 pm
by doomero
well i am searching something like forcepain flag, zandronum/skulltag cant support this flag yet, so...how i cant force to a monster enter to a special pain after of reciving the missile attack (by the player), but whithout damage him ?
RE: missile with 0 damage but force to pain
Posted: Thu Nov 29, 2012 11:12 pm
by Ænima
You could make it only do 1 damage and then in that actor's custom pain state, give that health back to them.
But there's a chance of killing them if they have exactly 1hp when you attack them.
RE: missile with 0 damage but force to pain
Posted: Thu Nov 29, 2012 11:17 pm
by doomero
Ænima wrote:
You could make it only do 1 damage and then in that actor's custom pain state, give that health back to them.
But there's a chance of killing them if they have exactly 1hp when you attack them.
your last point is the problem...but i founded another way to simulate that using xdeath state of the missile, thanks anyway =)
RE: missile with 0 damage but force to pain
Posted: Tue Dec 18, 2012 4:41 pm
by Lollipop
well, its fine that you have found a way, but you couldnt you share it with us other people? -.-
RE: missile with 0 damage but force to pain
Posted: Tue Dec 18, 2012 5:24 pm
by TerminusEst13
Ænima wrote:But there's a chance of killing them if they have exactly 1hp when you attack them.
The chances of this happening are pretty low, mind.
RE: missile with 0 damage but force to pain
Posted: Wed Dec 19, 2012 7:17 am
by Llewellyn
Well if it's a hitscan, you can make the calling actor call an ACS script instead of a hitscan attack, get the calling actor's target, and set the actor's state to the pain state.
RE: missile with 0 damage but force to pain
Posted: Wed Dec 19, 2012 2:20 pm
by Watermelon
I always wondered if you could do collision detection and say "well he must've hit on this game tic, so therefore use SetActorState or something", but I've never used this in practice though
RE: missile with 0 damage but force to pain
Posted: Thu Dec 20, 2012 9:51 am
by Llewellyn
Watermelon wrote:
I always wondered if you could do collision detection and say "well he must've hit on this game tic, so therefore use SetActorState or something", but I've never used this in practice though
IIRC projectiles on death have their target set to what they hit... probably.
RE: missile with 0 damage but force to pain
Posted: Thu Dec 20, 2012 1:02 pm
by Ijon Tichy
Llewellyn wrote:
Watermelon wrote:
I always wondered if you could do collision detection and say "well he must've hit on this game tic, so therefore use SetActorState or something", but I've never used this in practice though
IIRC projectiles on death have their target set to what they hit... probably.
Nope, it's their firer. They gotta keep track of who to give points to, right?
RE: missile with 0 damage but force to pain
Posted: Wed Dec 26, 2012 7:21 pm
by doomero
well my point was if the monster enter to a state (forced by a invisible projectile by the player with 0 damage) this give the player a inventory, and this force the player enter to a special state, on zdoom i used +forcepain flag and no problem, but on zandronum is different, this code is not supported yet so i changed:
the invisible projectile, the state xdeath (only monsters can force this) have the a_givetotarget this give the player the inventory, so is not needed force to pain state the monster for give that inventory.