Raised This Month: $ Target: $400
 0% 

User aiming?


Post New Thread Reply   
 
Thread Tools Display Modes
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 09-03-2008 , 12:46   Re: User aiming?
Reply With Quote #11

Quote:
Originally Posted by Emp` View Post
because "fm aim origin" returns a Float vector. if you were to use it, you would need to do:
Code:
message_begin(MSG_PVS, SVC_TEMPENTITY, origin);
write_byte(TE_IMPLOSION);
write_coord( floatround(origin[0]) );
write_coord( floatround(origin[1]) );
write_coord( floatround(origin[2]) );
write_byte(64);  // radius
write_byte(100); // count
write_byte(6);  // life
message_end();
Or better,use engfunc(EngFunc_WriteCoord).
danielkza is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-03-2008 , 13:21   Re: User aiming?
Reply With Quote #12

Quote:
Originally Posted by Emp` View Post
PHP Code:
#define message_begin_f(%1,%2,%3,%4) engfunc(EngFunc_MessageBegin,%1,%2,%3,%4)
#define write_coord_f(%1) engfunc(EngFunc_WriteCoord,%1)

message_begin_f(MSG_PVSSVC_TEMPENTITYorigin0);
write_byte(TE_IMPLOSION);
write_coord_forigin[0] );
write_coord_forigin[1] );
write_coord_forigin[2] );
write_byte(64);  // radius
write_byte(100); // count
write_byte(6);  // life
message_end(); 
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 09-03-2008 , 15:50   Re: User aiming?
Reply With Quote #13

I got it to work... I don't know how i didnt notice that it was "Float:Origin[3]" :/
[X]-RayCat 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 03:04.


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