6 posts,
3 people · 740 views
Thread Rating: ★★★★★
| closednade is in water |
| Started by ghzero on 02-14-2009, 05:57 PM |
started this thread
Posts: 160Threads: 42
Joined: Sep 2007
02-14-2009, 05:57 PM
#1
hello,rndoes you know how to know in plugin if an grenade is in water now?!
posted here
Posts: 2,068Threads: 103
Joined: May 2005
02-14-2009, 07:08 PM
#2
check the PointContents of the nade origin, if its CONTENTS_WATER then its in water :)
posted here
Posts: 776Threads: 75
Joined: Nov 2007
02-14-2009, 07:35 PM
#3
isnt a touch easier d-o?
started this thread
Posts: 160Threads: 42
Joined: Sep 2007
02-15-2009, 09:33 AM
#4
oh yes (THX) ..I goes the way to use PointContens coz for my effects I'm using timed tasks instead of permanent touch-checks.
posted here
Posts: 2,068Threads: 103
Joined: May 2005
02-15-2009, 01:57 PM
#5
isnt a touch easier d-o?nnntouch would most likely be way less effecient.. since its going to be called alot more (well depending on how/what the plugin does i guess) and most likely you would need a bunch more 'checks' to make sure you're touching the right thing and that everything is valid
started this thread
Posts: 160Threads: 42
Joined: Sep 2007
02-25-2009, 08:57 PM
#6
yes I choose the way, to spark under water but smoke over-water (in air).

