PDA

View Full Version : Cod2 shoot through hitbox and weapon firetime



croni1012
4th March 2018, 13:25
Hi,

I am developing a zombie mod with bots, and want to set possible to shoot through a couple of zombies in one line.
I would like to ask if anyone know about some trickery method for it or it can only be done with scripting (bullettrace).

Other thing:
With libcod, is it possible to set a weapon firetime / reloadtime to client?
For example, if a player buy a perk, he can reload faster or shoot faster.

Thanks,
croni1012

IzNoGoD
4th March 2018, 14:40
In the callback_playerdamage, run a bullettrace from the vPoint towards the vPoint+a scaled vDir, ignoring the current entity. When hitting a new ent, call a new instance of the callback_playerdamage on it. You could send a max depth with it too if you want.