Raised This Month: $ Target: $400
 0% 

Search for wall between 2 origins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-24-2007 , 15:42   Re: Search for wall between 2 origins
Reply With Quote #1

Alright thanks. This doesn't seem to be working properly for me yet.

I'm trying to return the entity index the traceline is hitting but it seems to be incorrect.

PHP Code:
engfunc(EngFunc_TraceLineplayerOrggrenadeOrg020);
client_print(0print_chat"%i"get_tr2(0TR_pHit)); 
The above code will always either return the players index, or the grenades index. Is it supposed to be random like that? Shouldn't it only be displaying the grenade index since I'm tracing from the players origin to the grenades?

Also, it seems tracelines go through walls? When I run out of view of the grenade it will still display the player index or the grenade index.
hlstriker is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-24-2007 , 16:09   Re: Search for wall between 2 origins
Reply With Quote #2

Try :

Code:
engfunc(EngFunc_TraceLine, playerOrg, grenadeOrg, IGNORE_MONSTERS, id, 0)

where id is the index of player that have for origin playerOrg


Just thought you should have a look at avalanche's "no he through walls" plugin.

Last edited by ConnorMcLeod; 11-24-2007 at 16:11.
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode