View Single Post
Author Message
raydan
Senior Member
Join Date: Aug 2006
Old 07-06-2011 , 02:14   [EXTENSION] NPC in CS:S - Updated 2012-7-4
Reply With Quote #1

Monster Extension - NPC in CS:S

Features:
spawn hl2 npc, play coop map in cs:s
press E on object can pickup
fix ammo_hegrenade_max work
fix some crash (ie. CAI_BaseNPC::OnTakeDamage_Alive, valve won't do that)
CEntity support non networked entity
make info_target reset on round restart (make sure env_gunfire work)
ONLY cstrike can load this extension

THIS EXTENSION MAY MAKE YOUR SERVER CRASH!


Currently ONLY for windows cstrike

Custom entity:
Code:
ai_relationship
env_headcrabcanister
floorturret_tipcontroller
func_tank
func_tanklaser
func_tankpulselaser
func_useableladder
grenade_beam
grenade_beam_chaser
grenade_spit
info_npc_spawn_destination
item_ammo_crate
item_battery
item_healthcharger
item_healthkit
item_healthvial
item_suitcharger
npc_alyx
npc_antlion
npc_antlion_template_maker
npc_antlionguard
npc_bullseye
npc_fastzombie
npc_fastzombie_torso
npc_gman
npc_headcrab
npc_headcrab_black
npc_headcrab_fast
npc_headcrab_poison
npc_maker
npc_manhack
npc_poisonzombie
npc_rollermine
npc_stalker
npc_template_maker
npc_turret_floor
npc_vortigaunt
npc_zombie
npc_zombie_torso
player_pickup
point_antlion_repellant
trigger_physics_trap
trigger_weapon_strip
Server Command:
Code:
monster_dump // show current CEntity count

Known Bugs:
ammo_338mag won't drop to ground
infinite loop (server freeze)

skill.cfg
Code:
// ===========
//  NPCs
// ============
// Barnacle
sk_barnacle_health  "35"
// Barney
sk_barney_health  "35"
// Bullseye
sk_bullseye_health  "35"
// Bullsquid
//sk_bullsquid_health "120"
//sk_bullsquid_dmg_bite "15"
//sk_bullsquid_dmg_whip "25"
// Citizen
sk_citizen_health  "40"
// Combine Soldier
sk_combine_s_health  "50"
sk_combine_s_kick  "10"
// Combine Guard
sk_combine_guard_health "70"
sk_combine_guard_kick "15"
// strider
sk_strider_health  "350"
sk_strider_num_missiles1 "5"
sk_strider_num_missiles2 "7"
sk_strider_num_missiles3 "7"
// Headcrab
sk_headcrab_health  "10"
sk_headcrab_melee_dmg "5"
// Fast Headcrab
sk_headcrab_fast_health "50"
// Poison Headcrab
sk_headcrab_poison_health "35"
// Houndeye
//sk_houndeye_health  "80"
//sk_houndeye_dmg_blast "25"
// Manhack
sk_manhack_health  "300"
sk_manhack_melee_dmg "5"
// Metropolice
sk_metropolice_health "40"
sk_metropolice_stitch_reaction "1.0"
sk_metropolice_stitch_tight_hitcount "2"
sk_metropolice_stitch_at_hitcount "1"
sk_metropolice_stitch_behind_hitcount "3"
sk_metropolice_stitch_along_hitcount "2"
// Rollermine
sk_rollermine_shock  "10"
sk_rollermine_stun_delay "3"
sk_rollermine_vehicle_intercept "1"
// Scanner (City)
sk_scanner_health  "30"
sk_scanner_dmg_dive  "25"
// Stalker
sk_stalker_health  "150"
sk_stalker_melee_dmg "5"
// Vortigaunt
sk_vortigaunt_health "100"
sk_vortigaunt_dmg_claw "10"
sk_vortigaunt_dmg_rake "25"
sk_vortigaunt_dmg_zap "50"
sk_vortigaunt_armor_charge "30"
// Zombie
sk_zombie_health "50"
sk_zombie_dmg_one_slash "10"
sk_zombie_dmg_both_slash "25"
// Poison Zombie
sk_zombie_poison_health  "175"
sk_zombie_poison_dmg_spit "20"
//Antlion
sk_antlion_health   "30"
sk_antlion_swipe_damage  "5"
sk_antlion_jump_damage  "5"
//Antlion Guard
sk_antlionguard_health  "500"
sk_antlionguard_dmg_charge "20"
sk_antlionguard_dmg_shove "10"
//Antlion Grub
//sk_antliongrub_health  "5"
//Ichthyosaur
sk_ichthyosaur_health  "200"
sk_ichthyosaur_melee_dmg "8"
// Combine Gunship
sk_gunship_burst_size  "15"
sk_gunship_health_increments "5"
sk_npc_dmg_gunship  "40"
sk_npc_dmg_gunship_to_plr "3"
// Combine Helicopter
sk_npc_dmg_helicopter   "6"
sk_npc_dmg_helicopter_to_plr "3"
sk_helicopter_grenadedamage  "30"
sk_helicopter_grenaderadius  "275"
sk_helicopter_grenadeforce  "55000"
// Combine Dropship
sk_npc_dmg_dropship  "2"
// Combine APC
sk_apc_health    "750"
 
// HEALTH/SUIT CHARGE DISTRIBUTION
sk_suitcharger  "75"
sk_suitcharger_citadel  "500"
sk_suitcharger_citadel_maxarmor "500"
sk_battery   "15"
sk_healthcharger  "50"
sk_healthkit  "25"
sk_healthvial  "10"
// Combine balls
sk_combineball_seek_angle "15"
sk_combineball_guidefactor "1.0"
// NPC damage adjusters
sk_npc_head  "5"
sk_npc_chest "1"
sk_npc_stomach "1"
sk_npc_arm  "1"
sk_npc_leg  "1"
// player damage adjusters
sk_player_head  "3"
sk_player_chest  "1"
sk_player_stomach "1"
sk_player_arm  "1"
sk_player_leg  "1"
// Allies
sk_ally_regen_time "0.2"
// Jeep
sk_max_gauss_round "30"
 
ai_enable_fear_behavior "1"
// zombine
sk_zombie_soldier_health "100"
// Episodic APC - Experimental
sk_apc_missile_damage "50"
// Antlion air attack
sk_antlion_air_attack_dmg  "10"
// Antlion worker
sk_antlion_worker_spit_speed "600"
sk_antlion_worker_health "60"
// Vortigaunt charge limit
sk_vortigaunt_armor_charge  "15"
sk_vortigaunt_armor_charge_per_token "5"
sk_vortigaunt_dmg_zap   "25"
// Poison headcrab
sk_headcrab_poison_npc_damage "20.0"
// advisor
//sk_advisor_health "1000" 
 
 
// Custom ConVar in this extension
sv_css_weapon_respawn_time 1 // mapper add "mm_respawn" keyvalue to weapon wil make weapon respawn, just like hl2dm coop
sv_css_item_respawn_time 1
sk_battery_max 100
sk_healthcharger_rechargetime 5
sk_hevcharger_rechargetime 5
sk_suitcharger_citadel_increase 10
sk_rollermine_bullet_hit  8 // CS:S haven't rocket, can't kill rollermine,  bullet hit rollermine X times will kill it
sk_npc_turret_floor_bullet_damage 5
test_coop.zip = simple coop map
core_plugin.zip = monster sourcmod plugin, preload npc mdl & read monster_download.txt
patch.zip = include antlion_worker.mdl, spitball_*.mdl, stalker.mdl (this model in hl2dm broken, copy from Obsidian Conflict, client NO need download this), antlion_worker sounds & materials, sound scripts

install core_plugin.zip & patch.zip
put monster.ext.dll to sourcemod extension folder


Linux doesn't support!!


How to play hl2dm coop map in cs:s?
use Stripper:Source


source code https://code.google.com/p/sourcemod-npc-in-css/


Credits:
Obsidian Conflict, CEntity
Attached Files
File Type: zip test_coop.zip (2.65 MB, 2188 views)
File Type: zip patch.zip (4.29 MB, 2978 views)
File Type: zip core_plugin.zip (2.0 KB, 2230 views)
File Type: dll monster.ext.dll (2.21 MB, 1722 views)
File Type: txt monster.cstrike.games.txt (61.2 KB, 1782 views)

Last edited by raydan; 07-04-2012 at 04:03.
raydan is offline