Raised This Month: $51 Target: $400
 12% 

[EXTENSION] NPC in CS:S - Updated 2012-7-4


Post New Thread Reply   
 
Thread Tools Display Modes
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 07-08-2011 , 10:03   Document for CVARs
Reply With Quote #11

Document for CVARs

NPCs
  • Barnacle
    • sk_barnacle_health "35"
      Barnacle spawn health. Default 35.
  • Barney
    • sk_barney_health "35"
      Barney's spawn health
  • Bullseye
    • sk_bullseye_health "35"
      ?
  • Bullsquid
    • sk_bullsquid_health "120"
      Bullsquid spawn health.
    • sk_bullsquid_dmg_bite "15"
      Bullsquid bite damage.
    • sk_bullsquid_dmg_whip "25"
      Maximum health an enemy has for bullsquid to attempt a tailwhip.
  • Citizen
    • sk_citizen_health "40"
      A citizen's spawn health.
  • Combine Soldier
    • sk_combine_s_health "50"
      A regular/Nova Prospekt soldier's spawn health
    • sk_combine_s_kick "10"
      A regular/Nova Prospekt soldier's melee damage
  • Combine Guard
    • sk_combine_guard_health "70"
      A Combine Elite Soldier's spawn health
    • sk_combine_guard_kick "15"
      A Combine Elite Soldier's melee damage
  • Strider
    • sk_strider_health "350"
      Strider spawn health.
    • sk_strider_num_missiles1 "5"
      Rockets required to take down an easy strider.
    • sk_strider_num_missiles2 "7"
      Rockets required to take down a medium strider.
    • sk_strider_num_missiles3 "7"
      Rockets required to take down a hard strider.
  • Headcrab
    • sk_headcrab_health "10"
      A headcrab's spawn health
    • sk_headcrab_melee_dmg "5"
      Melee damage
  • Fast Headcrab
    • sk_headcrab_fast_health "50"
      A fast headcrab's spawn health
  • Poison Headcrab
    • sk_headcrab_poison_health "35"
      A poison headcrab's spawn health
  • Houndeye
    • sk_houndeye_health "80"
      ?
    • sk_houndeye_dmg_blast "25"
      ?
  • Manhack
    • sk_manhack_health "300"
      A manhack's spawn health.
    • sk_manhack_melee_dmg "5"
      Melee damage.
  • Metropolice
    • sk_metropolice_health "40"
      A metrocop's spawn health. Affected by the "Gordon pre-criminal" global state.
    • sk_metropolice_stitch_reaction "1.0"
      How close to the airboat should Metrocops begin stitching?
    • sk_metropolice_stitch_tight_hitcount "2"
      Number of times a stitching Metrocop can hit a player from behind.
    • sk_metropolice_stitch_at_hitcount "1"
      Number of times a stitching Metrocop can hit a nearby player.
    • sk_metropolice_stitch_behind_hitcount "3"
      Number of times a stitching Metrocop can hit a nearby player.
    • sk_metropolice_stitch_along_hitcount "2"
      Number of times a stitching Metrocop can hit a player looking left/right.
  • Rollermine
    • sk_rollermine_shock "10"
      ?
    • sk_rollermine_stun_delay "3"
      ?
    • sk_rollermine_vehicle_intercept "1"
      ?
  • Scanner (City)
    • sk_scanner_health "30"
      A scanner's spawn health.
    • sk_scanner_dmg_dive "25"
      When this scanner hits another entity that isn't a scanner, it will damage the entity by this value.
  • Stalker
    • sk_stalker_health "150"
      A stalker's spawn health. (Default 50?)
    • sk_stalker_melee_dmg "5"
      Melee damage
  • Vortigaunt
    • sk_vortigaunt_health "100"
      Vortigaunt spawn health.
    • sk_vortigaunt_dmg_claw "10"
      Damage from a claw melee attack.
    • sk_vortigaunt_dmg_rake "25"
      Damage from a rake melee attack.
    • sk_vortigaunt_dmg_zap "50"
      Damage from a zap range attack.
    • sk_vortigaunt_armor_charge "30"
      Amount of energy to charge the player with.
  • Zombie
    • sk_zombie_health "50"
      A zombie's spawn health
    • sk_zombie_dmg_one_slash "10"
      Melee damage
    • sk_zombie_dmg_both_slash "25"
      Melee damage
  • Poison Zombie
    • sk_zombie_poison_health "175"
      A poison zombie's spawn health.
    • 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"
      An antlion guard's spawn health
    • 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"
      Fire off this many bullets in a burst
    • sk_gunship_health_increments "5"
      Number of times the gunship must be struck by explosive damage (multiplied for skill settings)
    • sk_npc_dmg_gunship "40"
      Used by ammotype "CombineCannon"
    • sk_npc_dmg_gunship_to_plr "3"
      Used by ammotype "CombineCannon"
  • Combine Helicopter
    • sk_npc_dmg_helicopter "6"
      Damage helicopter shots deal to everything but the player
    • sk_npc_dmg_helicopter_to_plr "3"
      Damage helicopter shots deal to the player
      Used in ammotype "HelicopterGun"
    • sk_helicopter_grenadedamage "30"
      The amount of damage the helicopter grenade deals.
    • sk_helicopter_grenaderadius "275"
      The damage radius of the helicopter grenade.
    • sk_helicopter_grenadeforce "55000"
      The physics force that the helicopter grenade exerts.
  • Combine Dropship
    • sk_npc_dmg_dropship "2"
      Dropship container cannon damage
  • Combine APC
    • sk_apc_health "750"
      ?

I need to find out what all the CVARs with a ? do , and add missing cvar to list..

Changelog:
Quote:
2011-07-07 (04:03 PM)
Reply submitted

Last edited by klausenbusk; 07-08-2011 at 10:13.
klausenbusk is offline
raydan
Senior Member
Join Date: Aug 2006
Old 07-09-2011 , 09:44   Re: [EXTENSION] NPC in CS:S
Reply With Quote #12

first time compile this extension in linux, it give alot error.
i am not going to release linux version
raydan is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 07-09-2011 , 11:54   Re: [EXTENSION] NPC in CS:S
Reply With Quote #13

Can you fix please crash on windows?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
miniman
Senior Member
Join Date: Aug 2009
Location: Israel
Old 07-09-2011 , 13:40   Re: [EXTENSION] NPC in CS:S
Reply With Quote #14

yeah well it crashes right when you try to load it into sourcemod ,reinstalled it now but it doesn't solve the problem
miniman is offline
mikehawk1339
Member
Join Date: May 2011
Old 07-09-2011 , 15:17   Re: [EXTENSION] NPC in CS:S
Reply With Quote #15

Here is a short video of this in a coop map in CSS

http://www.youtube.com/watch?v=kteX_UtwsDo

For those having crash problems, this is what works for me.
1. install MM 1.9.0 dev and SM 1.4.0 dev
2. install patch.zip, install core_plugin.zip
3. install monster.cstrike.games.txt and overwrite the existing. (the one that's posted under attachments)
4. install monster.ext.dll
5. either enter sm exts load monster.ext in console or compile monster_core.sp and add it to your plugins folder



Last edited by mikehawk1339; 07-09-2011 at 15:32.
mikehawk1339 is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 07-10-2011 , 09:06   Re: [EXTENSION] NPC in CS:S
Reply With Quote #16

raydan How to set NPC spawn count via SM, which keyvalue can be?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 07-10-2011 , 10:34   Re: [EXTENSION] NPC in CS:S
Reply With Quote #17

Quote:
Originally Posted by raydan View Post
use CreateEntityByName, DispatchSpawn,
DispatchKeyValue also work

S/GetEntData DOESN'T work, because the data address not in CBaseEntity

this extension contains too much settings, if someone make a document to show everything how it work would be very helpful
I would recommend using Predcrab's CEntity Framework as this will actually make them recognized as entities. Then you can use Set/GetEntData and so on from a Plugin.
__________________
CrimsonGT is offline
mikehawk1339
Member
Join Date: May 2011
Old 07-10-2011 , 12:09   Re: [EXTENSION] NPC in CS:S
Reply With Quote #18

Here is a quick demo of spawning the NPCs in de_dust2. None of the NPC health and damage cvars were set up, so most don't do damage and die in 1 hit.

http://www.youtube.com/watch?v=HCXe5Z0uWL0
mikehawk1339 is offline
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 07-10-2011 , 12:27   Re: [EXTENSION] NPC in CS:S
Reply With Quote #19

Quote:
Originally Posted by mikehawk1339 View Post
Here is a short video of this in a coop map in CSS

http://www.youtube.com/watch?v=kteX_UtwsDo

For those having crash problems, this is what works for me.
1. install MM 1.9.0 dev and SM 1.4.0 dev
2. install patch.zip, install core_plugin.zip
3. install monster.cstrike.games.txt and overwrite the existing. (the one that's posted under attachments)
4. install monster.ext.dll
5. either enter sm exts load monster.ext in console or compile monster_core.sp and add it to your plugins folder


Can i get the map used in the video?

Last edited by klausenbusk; 07-10-2011 at 12:34.
klausenbusk is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-10-2011 , 19:36   Re: [EXTENSION] NPC in CS:S
Reply With Quote #20

Quote:
Originally Posted by CrimsonGT View Post
I would recommend using Predcrab's CEntity Framework as this will actually make them recognized as entities. Then you can use Set/GetEntData and so on from a Plugin.
It's already using CEntity, which is why it doesn't work.
Considering you wrote so much with CEntity, you should know that it wont.
The datatable is offsets from the CBE, whereas the actual variables are offset from the CE, there have been a few proposals for possible workarounds, but none have been implemented.
__________________
asherkin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode