piercing bullets

Discuss all aspects related to modding Zandronum here.
Post Reply
[zheg]
New User
Posts: 15
Joined: Wed Dec 17, 2014 9:36 am
Location: Mexico

piercing bullets

#1

Post by [zheg] » Tue Dec 30, 2014 2:09 am

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?

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

RE: piercing bullets

#2

Post by Ænima » Tue Dec 30, 2014 3:38 am

Nope.


You can try stacked hitscan attacks but they have to have 0 spread.
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
SwordGrunt
Forum Regular
Posts: 377
Joined: Thu Jun 07, 2012 8:43 pm

RE: piercing bullets

#3

Post by SwordGrunt » Tue Dec 30, 2014 2:15 pm

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)

[zheg]
New User
Posts: 15
Joined: Wed Dec 17, 2014 9:36 am
Location: Mexico

RE: piercing bullets

#4

Post by [zheg] » Tue Dec 30, 2014 6:46 pm

i dont know how to do that :C
im new xD
where i can read about hitscan?

thx btw

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

RE: piercing bullets

#5

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

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

ZzZombo
Forum Regular
Posts: 323
Joined: Mon Jun 11, 2012 12:11 pm
Location: Ravenholm

RE: piercing bullets

#6

Post by ZzZombo » Wed Dec 31, 2014 11:58 am

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.
QZRcon - Qt-based tool for Zandronum/Skulltag servers!
#grandvoid funny stats

Post Reply