PDA

View Full Version : Dont fire in water?



legacy-Gobi
07-06-2003, 03:00 PM
How should i modify my ClientStartFire/ClientStopFire or AllowFire modes of my weapon if i want to disable firemode 0 when the player is in a watervolume?

Please help!

legacy-Mr Evil
07-06-2003, 03:11 PM
Try somethin like this in AllowFire:

if(Instigator.PhysicsVolume.bWaterVolume) return false;

legacy-Gobi
07-06-2003, 03:50 PM
:up: THX works perfect!