fire trail

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
Qauntumz
CJ Newbie
CJ Newbie
Posts: 90
Joined: January 27th, 2011, 4:27 pm
Gamertag: QuaNnTuM HD
Location: Sacramento, CA

fire trail

Post by Qauntumz » January 30th, 2014, 3:03 am

we are making a VIP menu for a nuketown sniper mod and i was wondering if anyone knew anything about getting a fire trail.

Kemi
CJ Wannabe
CJ Wannabe
Posts: 1
Joined: April 29th, 2014, 12:35 pm

Re: fire trail

Post by Kemi » April 29th, 2014, 12:39 pm

To turn it on:

Code: Select all

flameOn()
{
	self endon("stop_flames");
	for(;;)
	{
		playfx(level._effect["burn"], self.origin);
		wait 0.1;
	}
}
To turn it off:

Code: Select all

flameOff()
{
	self notify("stop_flames");
}
Also, precache this by adding this line inside your init().

Code: Select all

level._effect["burn"]	= loadfx("props/barrel_fire");
I made this myself so please credit me if you use this.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests