Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • [Zscript] Bullet Casing ignores player pitch and movement

$
0
0
Hi everyone, as you can see in the video, the bullets ejected ignore the player's pitch and movement

VIDEO:
https://youtu.be/O2VF3TYj4tc?si=2YRpKHJeRYGt21-3


The code is:

Code:

 MCHF B 2 BRIGHT A_FireProjectile("BulletCasing", Random(-45,-25), 0, -6,FPF_NOAUTOAIM  ,180);
How can I make it better? Bullet casing lags behind the player's movement. If the player faces up, the bullet cases do not take this into account. If the player moves , bullet casing, will fall behind

SORRY FOR MY BAD ENGLISH!

Statistics: Posted by OddYokai — Tue Jan 16, 2024 3:59 pm



Viewing all articles
Browse latest Browse all 3391

Trending Articles