![smoke sourcemod l4d2 smoke sourcemod l4d2](https://i.ytimg.com/vi/MIGGAGZxfXE/maxresdefault.jpg)
New Handle :hConf = LoadGameConfigFile( "l4d2_airstrike") Strcopy(error, err_max, "Plugin only supports Left 4 Dead 2.") ĬreateNative( "F18_ShowAirstrike", Native_ShowAirstrike) If( strcmp(sGameName, "left4dead2", false) ) GetGameFolderName(sGameName, sizeof(sGameName)) Public APLRes : AskPluginLoad2( Handle :myself, bool :late, String :error, err_max) ShowAirstrike(vPos, Float : GetNativeCell( 4)) ĭescription = "Creates F-18 fly bys which shoot missiles to where they were triggered from.", Public Native_ShowAirstrike( Handle :hPlugin, iNumParams) Handle :g_hMPGameMode, g_iPlayerSpawn, g_iRoundStart, bool :g_bLateLoad, Static Handle :g_hConfStagger, Handle :g_hForwardPluginState, Handle :g_hForwardRoundState, bool :g_bPluginTrigger, Handle :g_hCvarHorde, Handle :g_hCvarShake, Handle :g_hCvarSpread, Handle :g_hCvarStumble, Handle :g_hCvarStyle, Handle :g_hCvarVocalize,īool :g_bCvarAllow, g_iCvarDamage, g_iCvarDistance, g_iCvarHorde, g_iCvarShake, g_iCvarSpread, g_iCvarStumble, g_iCvarStyle, g_iCvarVocalize Static Handle :g_hCvarAllow, Handle :g_hCvarModes, Handle :g_hCvarModesOff, Handle :g_hCvarModesTog, Handle :g_hCvarDamage, Handle :g_hCvarDistance, #define PARTICLE_SPARKS "fireworks_sparkshower_01e" #define PARTICLE_BOMB3 "gas_explosion_main" #define PARTICLE_BOMB1 "FluidExplosion_fps" #define SOUND_EXPLODE5 "weapons/hegrenade/explode5.wav" #define SOUND_EXPLODE4 "weapons/hegrenade/explode4.wav" #define SOUND_EXPLODE3 "weapons/hegrenade/explode3.wav" #define SOUND_PASS8 "animation/jets/jet_by_05_rl.wav" #define SOUND_PASS7 "animation/jets/jet_by_05_lr.wav" #define SOUND_PASS6 "animation/jets/jet_by_04_lr.wav" #define SOUND_PASS5 "animation/jets/jet_by_03_lr.wav" #define SOUND_PASS4 "animation/jets/jet_by_02_lr.wav" #define SOUND_PASS3 "animation/jets/jet_by_01_lr.wav" #define SOUND_PASS2 "animation/jets/jet_by_02_mono.wav" #define SOUND_PASS1 "animation/jets/jet_by_01_mono.wav" #define SOUND_OVER3 "ambient/overhead/plane3.wav" #define SOUND_OVER2 "ambient/overhead/plane2.wav" #define SOUND_OVER1 "ambient/overhead/plane1.wav" #define MODEL_BOX "models/props/cs_militia/silo_01.mdl" #define MODEL_AGM65 "models/missiles/f18_agm65maverick.mdl" #define CVAR_FLAGS FCVAR_PLUGIN | FCVAR_NOTIFY * Thanks to "Downtown1", "ProdigySim" and "psychonic" for " Left 4 Downtown 2 L4D2 Only" - Used gamedata to stumble players.
![smoke sourcemod l4d2 smoke sourcemod l4d2](https://i.ytimg.com/vi/xES11YspUzQ/maxresdefault.jpg)
#SMOKE SOURCEMOD L4D2 CODE#
If I have used your code and not credited you, please let me know. This plugin was made using source code from the following plugins. Added cvar "l4d2_airstrike_vocalize" to set the chance to vocalize the player nearest the explosion. Added cvar "l4d2_airstrike_shake" to set the range at which the explosion can shake players screens. Added a hard limit of 8 AirStrikes at one time, in an attempt to prevent some players from crashing. Fixed the jet/missile spawning on most maps with high or low skyboxes, should work fine now. *ĝescrp :Ĝreates F-18 fly bys which shoot missiles to where they were triggered from.