View Single Post
Author Message
panxiaohai
Senior Member
Join Date: Mar 2010
Old 08-22-2010 , 00:44   [L4D & L4D2] Missile System
Reply With Quote #1

Description:
You can launch tracing missile by killing infected;
The spaciel infected have chance to launch missile when it is using ability or locking by a missile;


Video:
http://v.youku.com/v_show/id_XMzIxOTk4NjU2.html

1. Missile (+use+fire)
2. Tracking Missile (+use+duck+fire)


Convars:
"l4d_missile_radius", "250.0", "missile explode radius"
"l4d_missile_damage", "800.0", "damage"
"l4d_missile_push", "1200", "push forece"
"l4d_missile_safe", "1", "0:normal , 1:less chance to hurt survivor"

"l4d_missile_infected_smoker", "5.0", "launch missile when smoker drag[0.0, 30.0]%"
"l4d_missile_infected_charger", "5.0", "launch missile when charger charge[0.0, 30.0]%"
"l4d_missile_infected_spitter", "10.0", "spitter [0.0, 30.0]%"
"l4d_missile_infected_witch", "10.0", "witch harasser[0.0, 30.0]%"
"l4d_missile_infected_tank_dead", "10.0", "[0.0, 30.0]%"
"l4d_missile_infected_tank_throw", "10.0", "[0.0, 30.0]%"
"l4d_missile_infected_anti", "15.0", "infected launch missile when survivor launch missile [0.0, 30.0]%"

"l4d_missile_weapon_rifle", "1", "enable or disable for rifle {0, 1}"
"l4d_missile_weapon_sniper", "1", "enable or disable for sniper {0, 1}"
"l4d_missile_weapon_shotgun", "1", "enable or disable for shotgun {0, 1}"
"l4d_missile_weapon_magnum", "1", "enable or disable for magnum {0, 1}"
"l4d_missile_weapon_smg", "0", "enable or disable for smg{0, 1}"
"l4d_missile_weapon_pistol", "0", "enable or disable for pistol{0, 1}"

"l4d_missile_limit", "30", "missile limit"

"l4d_missile_kills", "8", "how many kills reward a missile"


"l4d_missile_radar_range", "1500.0", "radar scan range,missile do not lock on target if out of range [500.0, -]"

Command:
!miss

Update:

version 1.2
Carefully modify the algorithm, fix the crashing problem.

version 1.3
Add convar: l4d_missile_radar_range ;
Missile
will fly around you if it have no target;

Requirement: SDK Hooks
Attached Thumbnails
Click image for larger version

Name:	l4d_smalltown01_caves0253.jpg
Views:	3646
Size:	78.8 KB
ID:	95161   Click image for larger version

Name:	c2m1_highway0216.jpg
Views:	2724
Size:	75.8 KB
ID:	95162  
Attached Files
File Type: smx missile_l4d.smx (26.4 KB, 1716 views)
File Type: sp Get Plugin or Get Source (missile_l4d.sp - 1704 views - 47.8 KB)

Last edited by panxiaohai; 11-14-2011 at 20:24.
panxiaohai is offline