Senior Member
|
08-12-2011
, 20:08
[L4D & L4D2] Intelligent Machine Gun
|
#1
|
Credits
alexip121093
hihi1210
Descriptions
You can spawn an intelligent machine gun ( mini gun), the gun is automatically controlled, you can not use it to shot, but you can carry it on your back or put it down, when you put it down , the gun try to find the enemy and fire automatically .
Health: If a gun's health go zero, it will go to sleep.
Sleep: If a gun not attack a enemy for a long time , it go to sleep.
Wake up: Survivor can wake up a gun by shoving it. Infected can wake up a gun by attacking it.
Team: The gun belong to a team , If it is survivor team, it will attack infected, if it is infected team, it will attack survivors.
Betray to infected team : If a gun being attcked, it will betray to infected.
Betray to survivor team : If a gun being shoved by survivor, it will betray to survivor.
Ammo: you can refill a gun's ammo by using a ammo stack when carry it.
Video:
http://v.youku.com/v_show/id_XMjk0NDIyNzI0.html
How to use (default key):
!machine , !machine 0 !machine 1, : spawn a machine gun with different type.
!removemachine : remove a machine gun.
duck+mouse right button : carry the gun on your back .
use button : put the gun down.
Convars:
"l4d_machine_enable", "2", " 0:disable, 1:enable in coop mode, 2: enable in all mode "
"l4d_machine_damage_to_infected", "25.0", "bullet damage"
"l4d_machine_damage_to_survivor", "2.0", "bullet damage"
"l4d_machine_maxuser", "5", "maximum count of machine gun"
"l4d_machine_range", "1000.0", "maxmum scan range of machine gun"
"l4d_machine_voerheat", "10.0", " how many seconds did the gun overheat."
"l4d_machine_adminonly", "0", "1:admin use only"
"l4d_machine_msg", "1", "how many times to display usage information , 0 disable "
"l4d_machine_ammo_count", "1000", "ammo count"
"l4d_machine_ammo_refill", "1", "0:disable, 1:enable"
"l4d_machine_allow_carry", "1", "0:disable carray 1:every one, 2: only gun's creator, l4d1 should set to 2 otherwise will crash"
"l4d_machine_sleep_time", "300", ""how many seconds does a gun goto sleep while no enemy, must >0"
"l4d_machine_fire_rate", "20", "rate of fire, how many shot per soncods [5, 30]"
"l4d_machine_health", "100.0", "gun's health"
"l4d_machine_betray_chance", "10.0", "betray chance"
"l4d_machine_ammo_type", "0", "0: normal , 1:incendiary 2:explosive"
Requirement: SDK Hooks
ChangeLog:
version 1.07
Improve algorithm consume fewer resources, the gun is more responsive.
fix some hidden bugs.
duck+shove to carry machine.
Add convers:
"l4d_machine_betray_chance", "10.0", "betray chance"
"l4d_machine_ammo_type", "0", "0: normal , 1: incendiary 2: explosive"
Last edited by panxiaohai; 10-17-2011 at 16:35.
|
|