Cxwh
Veteran
- Messages
- 64
- Reaction score
- 45
- Points
- 793
Don't think I'm the first one to do it, but I just found out how to use the flame distortion fx and thought I'd share since it looks quiet nice.
Added a video so people know what I'm talking about.
Anyway, here's the source
Added a video so people know what I'm talking about.
Anyway, here's the source
Code:
#include maps\mp\_visionset_mgr;
toggleFlameDistortion() {
if(!isDefined(self.tfd))
self.tfd = 1;
self.tfd = !self.tfd;
setdvar("r_flameScaler", self.tfd);
//r_flameScaler gives it more or less opacity
}
toggleFlameDistortionFx() {
if(!isDefined(self.fd))
self.fd = 0;
self.fd = !self.fd;
if(self.fd)
self thread flamedistortion();
else
self notify("stop_fd");
}
flamedistortion() {
self endon("disconnect");
self endon("stop_fd");
time = level.zm_transit_burn_max_duration;
while(isAlive(self) && self.fd) {
maps\mp\_visionset_mgr::vsmgr_activate("overlay", "zm_transit_burn", self, time, time);
wait time;
}
self.fd = 0;
}