View Single Post
Re: Making a blowtorch. Drawing the flame?
Old
  (#7)
Lazer
Guest
 
Status:
Posts: n/a
Default Re: Making a blowtorch. Drawing the flame? - 22-02-2004

Problem...

Code:
 case 5001: 
	int m_iBalls;
	m_iBalls = gEngfuncs.pEventAPI->EV_FindModelIndex( "sprites/rhotglow.spr" );
	gEngfuncs.pEfxAPI->R_TempSprite( (float *)&entity->attachment[0], (float *)&entity->attachment[1], 0.1, m_iBalls, kRenderGlow, kRenderFxNoDissipation, 255.0, 1.0, FTENT_FADEOUT );
break;
I want to make the sprite move from my attachment[0] to attachment[1]. I guess I'm not doing this right because whenever I shoot now it makes the sprite somewhere flying up into the sky. I can't even figure out a deffinate patter as to where the ball spawns and where it flies to. Any idea what I should use for the first two parameters to make it go from one point to the other?

Last edited by Lazer; 22-02-2004 at 19:09.. Reason: fixing code
  
Reply With Quote