Page 1 of 1

piercing bullets

Posted: Tue Dec 30, 2014 2:09 am
by [zheg]
Hi, im new at coding, i been searching trough the web and i cant find an answer, so maybe asking here i can finally found it
my faq its...
how to make a piercing bullet? a bullet that can hit just 2 or 3 targets behind the first enemy
since railgun act like piercing bullet, but the railgun penetrates everything, and i just need to pierce 3 enemies.

i tried with projectile actor with ripper, but its not working like i want
is there a way to remove ripper flag when hitting the first target?

RE: piercing bullets

Posted: Tue Dec 30, 2014 3:38 am
by Ænima
Nope.


You can try stacked hitscan attacks but they have to have 0 spread.

RE: piercing bullets

Posted: Tue Dec 30, 2014 2:15 pm
by SwordGrunt
The only way to do this would be with some scripting, giving your +RIPPER projectile a custom TID and damagetype; when an enemy is hit by it, they activate a script in their custom pain state that counts down to however many times you want it to pierce, then removes the projectile actor by its TID.

Or you can just do stacked hitscans like he said, if your weapon is supposed to be perfectly accurate (I'd assume you want piercing bullets for something like a Sniper Rifle, so that wouldn't be an issue)

RE: piercing bullets

Posted: Tue Dec 30, 2014 6:46 pm
by [zheg]
i dont know how to do that :C
im new xD
where i can read about hitscan?

thx btw

RE: piercing bullets

Posted: Tue Dec 30, 2014 8:57 pm
by Ænima

RE: piercing bullets

Posted: Wed Dec 31, 2014 11:58 am
by ZzZombo
You can use a FastProjectile that, upon hitting something bleeding, will spawn another one from behind. It's very tricky to do properly tho, and I don't feel like coding ATM, so here it is.