Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › Help › Scripting Help › nade is in water
6 posts, 3 people · 740 views Thread Rating: ★★★★★
closednade is in water
Started by ghzero on 02-14-2009, 05:57 PM
ghzero
started this thread
Posts: 160
Threads: 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?!

diamond-optic
posted here
Posts: 2,068
Threads: 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 :)

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
02-14-2009, 07:35 PM #3

isnt a touch easier d-o?

ghzero
started this thread
Posts: 160
Threads: 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.

diamond-optic
posted here
Posts: 2,068
Threads: 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

ghzero
started this thread
Posts: 160
Threads: 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).

Archive › Old Forum Threads › Help › Scripting Help › nade is in water
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC