12-01-2010, 14:06
(This post was last modified: 12-09-2010, 10:40 by alistair3149.)
It is another tutorial...You can create fx by the following function...
List of Fx:
I have a nightmare about the fx list...There are too much Fx
Every map file have a lot of Fx...For now, the map fx is not included
Code:
****************************************************************************************************************
OneShotfx: Fires an effect once.
maps\mp\_fx::OneShotfx( effectname, (x y z), predelay);
Example:
maps\mp\_fx::OneShotfx(level.medFire, // Medium fire effect
(-701, -18361, 148), // Origin
5); // Wait 5 seconds before doing effect
****************************************************************************************************************
****************************************************************************************************************
Loopfx: Loops an effect with a waittime.
maps\mp\_fx::loopfx( effectname, (x y z), delay_between_shots);
Example:
maps\mp\_fx::loopfx(level.medFire, // Medium fire effect
(-701, -18361, 148), // Origin
0.3); // Wait 0.3 seconds between shots
****************************************************************************************************************
****************************************************************************************************************
GunFireLoopfx: Simulates bursts of fire.
maps\mp\_fx::gunfireloopfx(fxId, fxPos, shotsMin, shotsMax, shotdelayMin, shotdelayMax, betweenSetsMin, betweenSetsMax)
Example:
maps\mp\_fx::gunfireloopfx (level.medFire, // Medium fire effect
(-701, -18361, 148), // Origin
10, 15, // 10 to 15 shots
0.1, 0.3, // 0.1 to 0.3 seconds between shots
2.5, 9); // 2.5 to 9 seconds between sets of shots.
****************************************************************************************************************
****************************************************************************************************************
GrenadeExplosionfx: Creates a grenade explosion with view jitter.
maps\mp\_fx::GrenadeExplosionfx((x y z));
Example:
maps\mp\_fx::GrenadeExplosionfx( (-701, -18361, 148) ); // origin
****************************************************************************************************************
List of Fx:
Code:
Explosion:
explosions/fx_exp_equipment //Equipment explode
weapon/artillery/fx_artillery_strike_dirt_mp //Artillery explode (Dirt)
vehicle/vexplosion/fx_vexplode_helicopter_exp_mp //Heli explode (Small)
explosions/fx_exp_aerial //Heli explode (Medium)
vehicle/vexplosion/fx_vexplode_heli_killstreak_exp_sm //Heli explode (Large)
maps/mp_maps/fx_mp_exp_rc_bomb //RCXD explode
vehicle/vexplosion/fx_vexplode_u2_exp_mp //UAV explode
Light:
weapon/claymore/fx_claymore_laser //Claymore laser
weapon/crossbow/fx_trail_crossbow_blink_red_os //Crossbow red light
weapon/crossbow/fx_trail_crossbow_blink_grn_os //Crossbow green light
weapon/satchel/fx_explosion_satchel_generic //Mine explode
misc/fx_equip_light_red //Enemy camera light (Red)
misc/fx_equip_light_green //Friendly camera light (Green)
vehicle/light/fx_chinook_exterior_lights_grn_mp //Heli signal light (Green)
vehicle/light/fx_chinook_exterior_lights_red_mp //Heli signal light (Red)
vehicle/light/fx_rcbomb_light_green_os //RCXD light (Green)
vehicle/light/fx_rcbomb_light_red_os //RCXD light (Red)
misc/fx_equip_light_red //Equipment light (Red)
misc/fx_equip_light_green //Equipment light (Green)
misc/fx_equip_tac_insert_light_grn //Tactical insertion light (Green)
misc/fx_equip_tac_insert_light_red //Tactical insertion light (Red)
Fog/Smoke:
trail/fx_geotrail_jet_contrail //Jet contrail
trail/fx_trail_heli_killstreak_engine_smoke_33 //Heli damage smoke (Light)
trail/fx_trail_heli_killstreak_engine_smoke_66 //Heli damage smoke (Heavy)
trail/fx_trail_heli_killstreak_tail_smoke //Heli contrail
misc/fx_equip_sr71_contrail //UAV contrail
Flame:
vehicle/exhaust/fx_exhaust_jet_afterburner //Jet afterburner
env/fire/fx_fire_player_sm_mp //Player burn (Alive)
env/fire/fx_fire_player_md_mp //Player burn (Death)
weapon/muzzleflashes/fx_pilot_light //Flame thrower preburn flame
napalmground_lg_mp //Napalm strike flame (Large)
napalmground_sm_mp //Napalm strike flame (Small)
vehicle/exhaust/fx_exhaust_u2_spyplane_afterburner //UAV afterburner
HUD:
bio/player/fx_player_water_splash_impact //Water splash
Unknown:
weapon/bombing_run/fx_mp_bombing_run_bomb
vehicle/exhaust/fx_exhaust_b52_bomber
I have a nightmare about the fx list...There are too much Fx
Every map file have a lot of Fx...For now, the map fx is not included