Raised This Month: $ Target: $400
 0% 

How to hook tempentities proberly?


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-04-2009 , 17:25   Re: How to hook tempentities proberly?
Reply With Quote #11

It's not TR_pHit you have to change.

Alter TR_flFraction ( or TR_vecEndPos ). Set to 1.0, meaning the trace hits nothing.

Also you should filter the trace a bit. ( see tutos )
__________________
Arkshine is offline
tolsty
Senior Member
Join Date: Feb 2008
Location: Latvia
Old 10-04-2009 , 17:31   Re: How to hook tempentities proberly?
Reply With Quote #12

i tried that too, no effect
example:
PHP Code:
public fw_traceline(Float:start[3], Float:end[3], conditionsidtrace)
{
    
// tried to set 1.0, no effect :P
    
set_tr2(traceTR_flFraction0.0)

    
set_tr2(traceTR_vecEndPosstart)

__________________
[IMG]http://img2.**************/img2/7173/signfp.jpg[/IMG]
tolsty is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-04-2009 , 17:42   Re: How to hook tempentities proberly?
Reply With Quote #13

You are blind. I said 1.0. The length of a trace is between 0.0 and 1.0 ; if < 1.0 it means it touches something. And don't set "start", but something like { 4096.0, 4096.0, 4096.0 }. Don't forget to register as pre and filter the trace.
__________________
Arkshine is offline
tolsty
Senior Member
Join Date: Feb 2008
Location: Latvia
Old 10-04-2009 , 17:51   Re: How to hook tempentities proberly?
Reply With Quote #14

what do you mean by filtering it ?
tried this but nothing O_o
PHP Code:
public plugin_init()
    
register_forward(FM_TraceLine,"fw_traceline"1);

public 
fw_traceline(Float:start[3], Float:end[3], conditionsidtrace)
{

    new 
origin[3];
    
origin = { 4096.04096.04096.0 }
    
set_tr2(traceTR_flFraction1.0)
    
set_tr2(traceTR_vecEndPosorigin)

__________________
[IMG]http://img2.**************/img2/7173/signfp.jpg[/IMG]
tolsty is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-04-2009 , 18:17   Re: How to hook tempentities proberly?
Reply With Quote #15

Forget, it won't work. I've tried myself trace is blocked but there is still the effect. I've tried to hook svc_tempentity and there are no messages when I fire. So it means the effects are client-side. You can't block it. You can prevent to fire though. There's still probably the way by using SigScan module but the hooking is not done yet.
__________________

Last edited by Arkshine; 10-04-2009 at 18:20.
Arkshine is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 10-05-2009 , 12:50   Re: How to hook tempentities proberly?
Reply With Quote #16

Quote:
Originally Posted by ot_207 View Post
I am affraid that Exolents way is the only way because tempents don't exist as ents do.
What I meant to say is that the int/char conversion seems unnecessary.
Jon is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-05-2009 , 13:18   Re: How to hook tempentities proberly?
Reply With Quote #17

just supercede the traceline ?

EDIT: TraceAttack i was mean
__________________

Last edited by xPaw; 10-05-2009 at 13:24.
xPaw is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-05-2009 , 13:32   Re: How to hook tempentities proberly?
Reply With Quote #18

Effects are done client-side, it won't work.
__________________
Arkshine 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 22:40.


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