Raised This Month: $ Target: $400
 0% 

[SOLVED] Change entity angle and origin - backweapon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
joselitostrike
Junior Member
Join Date: Jan 2005
Old 10-14-2006 , 13:42   [SOLVED] Change entity angle and origin - backweapon
Reply With Quote #1

I'm trying to find a solution for the plugin back weapons by cheap_suit to not use custom models and use w_ models, so far i can't get nothing. I tried changing the origin with entity_set_origin but dunno what is wrong.

Code:
if(g_bwEnt[id] < 1)
	{
		g_bwEnt[id] = create_entity("info_target")
		if(g_bwEnt[id] > 0)
		{
			new float:test[3]
			entity_get_vector(id, EV_VEC_origin,test)
			entity_set_origin(g_bwEnt[id], test)
			entity_set_int(g_bwEnt[id], EV_INT_movetype, MOVETYPE_FOLLOW)
			entity_set_edict(g_bwEnt[id], EV_ENT_aiment, id)
			test[1] += 500.0 // numbers just for test
			test[2] += 9998.0
			entity_set_origin(g_bwEnt[id], test)
		}
	}
Any other idea to change the angle and origin are welcome.
__________________
HAMACHI:

Last edited by joselitostrike; 10-15-2006 at 19:22.
joselitostrike is offline
 



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 04:53.


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