Raised This Month: $32 Target: $400
 8% 

Traceline help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-19-2014 , 02:51   Traceline help
Reply With Quote #1

Hello dear members, i finded this tutorial on alliedmods, i wanna check when i hit TE_BEAMPOINTS a player take damage

Here is the code:
Code:
#include <amxmodx>

new g_Beam;

public plugin_init( )
{
    register_clcmd( "test", "pTest" );
}   

public plugin_precache()
{
    g_Beam = precache_model( "sprites/zerogxplode4.spr" );

}
public pTest( id )
{
            new I_player_origin[ 3 ], I_end_origin[ 3 ];
            get_user_origin( id, I_player_origin, 1 );
            get_user_origin( id, I_end_origin, 3 );


            message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
            write_byte( 0 )        
            write_coord(I_player_origin[ 0 ] )  
            write_coord(I_player_origin[ 1 ] )
            write_coord(I_player_origin[ 2 ] )
            write_coord(I_end_origin[ 0 ] )  
            write_coord(I_end_origin[ 1 ] )
            write_coord(I_end_origin[ 2 ] )
            write_short( g_Beam )
            write_byte( 1 )
            write_byte( 1 )   
            write_byte( 2 )    
            write_byte( 40 )    
            write_byte( 2 )   
            write_byte( 255 )
            write_byte( 255 )
            write_byte( 255 )
            write_byte( 200 )    
            write_byte( 0 )   

            message_end()


}
So, i wanna you help me use this tutorial for create a damage to my te beampoints plugin.
( i dont have no idea how to use it )

Last edited by swapped; 05-19-2014 at 02:51.
swapped is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-19-2014 , 03:10   Re: Traceline help
Reply With Quote #2

It's a tutorial with example, so read it and don't create thread right away. You obviously did not read it, nor tried things. If I'm wrong, you should post what you tried.
__________________

Last edited by Arkshine; 05-19-2014 at 03:12.
Arkshine is offline
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-19-2014 , 03:27   Re: Traceline help
Reply With Quote #3

I dont try nothing, i read this tutorial 10 times and sincely i dont understand absolute nothing, how can help this tutorial my


Sorry but im realy confuse i need you to explain me detalied please

Last edited by swapped; 05-19-2014 at 03:28.
swapped is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 05-21-2014 , 09:10   Re: Traceline help
Reply With Quote #4

what you want...
damage player when hit the 'sprite'?!
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-22-2014 , 02:06   Re: Traceline help
Reply With Quote #5

Quote:
Originally Posted by ezio_auditore View Post
what you want...
damage player when hit the 'sprite'?!
yes
swapped is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 05-23-2014 , 11:59   Re: Traceline help
Reply With Quote #6

well techincally, i don't think that 'sprite' takes damage... (I don't think we can hook Ham_TakeDamage with the entity coz it never takes damage. As far as i know.)
Good coders like ConnorMcLeod or Arkshine may help
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-24-2014 , 02:15   Re: Traceline help
Reply With Quote #7

Quote:
well techincally, i don't think that 'sprite' takes damage
no shit ?

Quote:
... (I don't think we can hook Ham_TakeDamage with the entity coz it never takes damage. As far as i know.)
As like everyone know.

Quote:
Good coders like ConnorMcLeod or Arkshine may help
And bailopan why not ?
swapped is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 05-24-2014 , 04:13   Re: Traceline help
Reply With Quote #8

You can use the code from Nades Mode
Quote:
Originally Posted by ot_207
Trip laser: This is the most complex mode. Throw this at the wall or ceiling, and it will take some time before it will activate.After it activates it will draw a laser. If anyone should blunder into the detection path, the grenade will launch itself in the direction of the victim

Last edited by SpeeDeeR; 05-24-2014 at 04:14.
SpeeDeeR is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 05-24-2014 , 08:43   Re: Traceline help
Reply With Quote #9

Quote:
Originally Posted by SpeeDeeR View Post
You can use the code from Nades Mode
I guess in this plugin a touch is registered with that sprite's entity name
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
DavidJr
Senior Member
Join Date: Apr 2012
Old 05-24-2014 , 21:27   Re: Traceline help
Reply With Quote #10

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.
__________________
What are you looking for here?

Last edited by DavidJr; 05-24-2014 at 21:28.
DavidJr 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 00:03.


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