Raised This Month: $51 Target: $400
 12% 

Traceline help


Post New Thread Reply   
 
Thread Tools Display Modes
ezio_auditore
Senior Member
Join Date: May 2013
Old 05-24-2014 , 23:47   SOLID_BBOX
Reply With Quote #11

Quote:
Originally Posted by DavidJr View Post
No, you cannot detect TE_BEAMPOINTS. But if you want to detect it, you may try to make an entity and set the sprites model, set the the solidity to SOLID_BBOX and you can detect it in TraceAttack/TakeDamage.
and why SOLID_BBOX?
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
DavidJr
Senior Member
Join Date: Apr 2012
Old 05-25-2014 , 00:54   Re: Traceline help
Reply With Quote #12

SOLID_BBOX, SOLID_SLIDEBOX, SOLID_BSP, etc can be shot.
__________________
What are you looking for here?

Last edited by DavidJr; 05-25-2014 at 01:07.
DavidJr is offline
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-25-2014 , 03:16   Re: Traceline help
Reply With Quote #13

Quote:
Originally Posted by DavidJr View Post
No, you cannot detect TE_BEAMPOINTS. But if you want to detect it, you may try to make an entity and set the sprites model, set the the solidity to SOLID_BBOX and you can detect it in TraceAttack/TakeDamage.
is out of my knowledge, can u show me an example please ?
swapped is offline
DavidJr
Senior Member
Join Date: Apr 2012
Old 05-25-2014 , 03:35   Re: Traceline help
Reply With Quote #14

Example:

PHP Code:
new const spritesModel[] = "sprites/flame.spr";

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_TraceAttack"info_target""fwd_TraceAttack");
}

public 
fwd_TraceAttack(iEnt)
{
    new 
szClass[32];
    
pev(iEntpev_classnameszClasssizeof szClass);
    
    if (!
equal(szClass"flame")) return HAM_IGNORED;
    
    
//you attack the flame entity
}

CreateEntity()
{
    new 
iEnt engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"));
    
    
set_pev(iEntpev_classname"flame");
    
set_pev(iEntpev_solidSOLID_BBOX);
    
engfunc(EngFunc_SetModeliEntspritesModel);

__________________
What are you looking for here?
DavidJr is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-25-2014 , 05:22   Re: Traceline help
Reply With Quote #15

How about this?
PHP Code:
static theonewhotouchedline
engfunc
(EngFunc_TraceHullI_player_originI_end_origin00ent0)
theonewhotouchedline get_tr2(0TR_pHit
PS: ent can be 0 or playerid, I really dont know why the ent is needed at all.
I guess it was something to do with ( Ignore entity )

Last edited by .Dare Devil.; 05-25-2014 at 05:23.
.Dare Devil. is offline
DavidJr
Senior Member
Join Date: Apr 2012
Old 05-25-2014 , 05:34   Re: Traceline help
Reply With Quote #16

Quote:
Originally Posted by .Dare Devil. View Post
How about this?
PHP Code:
static theonewhotouchedline
engfunc
(EngFunc_TraceHullI_player_originI_end_origin00ent0)
theonewhotouchedline get_tr2(0TR_pHit
PS: ent can be 0 or playerid, I really dont know why the ent is needed at all.
I guess it was something to do with ( Ignore entity )
He wants to detect an attack toward TE_BEAMPOINT
__________________
What are you looking for here?
DavidJr is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-25-2014 , 06:54   Re: Traceline help
Reply With Quote #17

Quote:
Originally Posted by DavidJr View Post
He wants to detect an attack toward TE_BEAMPOINT
and i gave him way to get there.
.Dare Devil. is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 05-25-2014 , 07:03   Re: Traceline help
Reply With Quote #18

i guess he did in the above code
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
DavidJr
Senior Member
Join Date: Apr 2012
Old 05-25-2014 , 07:04   Re: Traceline help
Reply With Quote #19

Quote:
Originally Posted by .Dare Devil. View Post
and i gave him way to get there.
Wait, with your method when the sprite is attacked, it can be detected?
__________________
What are you looking for here?
DavidJr is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-25-2014 , 07:56   Re: Traceline help
Reply With Quote #20

Quote:
Originally Posted by DavidJr View Post
Wait, with your method when the sprite is attacked, it can be detected?
do you even know what traceline does?
.Dare Devil. 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 16:49.


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