shooting passable entities

Posted By: robertbruce

shooting passable entities - 03/19/12 13:37

Hello,

Does anyone have a working example of using c_trace with passable entities. I would like to create a ghost like game wheere you cab shoot the ghosts but obviously they can pass through objects.

ACTIVATE_SONAR does work to some extent but even when leaving out the ignore passable and passents I cannot get the trace to work.

would appreciate any help.

thanks,

Rob
Posted By: Superku

Re: shooting passable entities - 03/19/12 14:33

Check if the c_trace hits something directly at the origin, such as the player or the (passable?) weapon.
If that didn't help, a simple solution would be to move the ghosts manually (manipulate their xyz-position) instead of using c_move. Alternatively, you could iterate over all (or just the ghost) entities and reset their passable flag, then c_trace and set it again.
Posted By: robertbruce

Re: shooting passable entities - 03/23/12 16:58

thanks, I've managed a workaround and have used your axis movement as well
Posted By: kuro

Re: shooting passable entities - 03/24/12 07:32

Ok yes !!
______________________
sbobet-ผลบอล-gclub-บาค&#3...609;์
© 2024 lite-C Forums