Author Topic: Some weapons go through riot shields?  (Read 590 times)

Hey guys the Huntsman is an example of one of these weapons, I was wondering how i can make it so the huntsman doesnt go through the riot shield.
Thanks.


heres the script

We'll need the code for the Riot Shield too.

here you go

As far I know, Riot Shield doesn't block anything else other than the gun's projectiles... If it's pandan's. I might be wrong, idk.

only things that i know about that it doesnt block is tf2 stuff

the eyelander and the tf2 wrench also dont get blocked

I think the difference is between weapons that use raycasting and ones that don't

I know rykuta's weaponset uses raycasting and is able to be blocked by the riot shield, so that means the problem probably lies in the weapons not doing the raycasts right.  It is probably one of the bitmasks that the raycast needs to search for.
« Last Edit: December 21, 2012, 05:48:58 PM by Nexus »

oh, im not really a scripter, i just do basic stuff. So how do i fix it

I'd tell the creator of the faulty weapons about the incompatibility and proceed to use compatible weapons for the time being.

Generally it is a bad idea to edit someone else's weaponset because they will likely update it themselves later differently and you will be stuck a version parallel and have to figure out how to integrate or something.