English 2Gen's Extension for Starkkz's NPC Pack icon

60 comments
22.06.16 05:48:51 pm
like 16 like it!
4.97 mb, 253 Downloads
2Gen
User
Offline Off
Especially for players and mappers who wanted to see new NPCs in CS2D. I hope it will be useful, and someone can make good co-op maps with these NPCs.
Based on Starrkz's NPC Pack.

> New NPCs list:
- • HL HECU Heavy Soldier with shotgun (closer attack distance, shooting buckshot)
- • HL HECU Soldier with mp5 (basic ranged attacks and additional melee attacks, has 20% chance to throw HE)
- • HL HECU Sniper (high damage and long range)
- • HL HECU Bomber (RPG as primary weapon, very dangerous NPC)
- • HL Assassin (he runs the player, trying to join the melee, and shooting while running)

- • HL Zombie (slow zombie, 7 random skins)
- • HL2 Fast Zombie (faster, stronger)
- • HL2 Poison Zombie (throws snarks at the player)
- • HL Voltigore (NPC with an electric attack from HL Opposing Force)
- • HL Gargantua (dual flamethrower and stomp attack)
- • HL2 Stalker
- • HL2 Cremator
- • HL2 Manhack (drone with blades)
- • HL2 Sentry gun (just a turret)
- • HL2 Rebel (friendly npc, follows player and attacks enemies, you can say !stop to stop him and !go to make him follow)
- • HL2 Antlion (triple acid ranged attack, jump attack, melee attack)

- • HL2 Metropolice - 5 NPCs with 5 variants of weapons and 11 skins:
- • Melee (stunstick)
- • Pistol
- • Smg
- • Shotgun
- • Grenade launcher

- • HL2 Elite Combines - 4 NPCs with 4 variants of weapons and 5 skins:
- • Sniper
- • RPG
- • Ar2 rifle
- • Heavy laser rifle

- • HL2 Super Combine - strong robot with minigun, stinger missiles and plasma-cannon (more dangerous than the strider)
- • Dr. Hax (use it with caution)

- • Electric/frozen Vortigaunt (stun ranged attacks)
- • Explosive suicidal zombie (explodes in attack, and explodes after death)
- • Drone (friendly NPC, follow the player and attack enemy NPCs; test stuff(can't attack default cs2d npcs and follow first player ID)

- • Demon
- • Ghost
- • Imp
- • Dark soul (2 npcs, one with melee attack and other with ranged attack)

√ Old fixed NPCs:

- • HL Headcrab (new sprite, fixed all sounds)


> > INSTALLATION: < <
1) Download Starkkz's NPC Pack (contains main script and more h-l npcs)
2) Put downloaded pack in CS2D folder
3) Download and put this 2Gen's NPCs extension in CS2d folder with overwrite (overwriting zombie.lua and headcrab.lua)
4) Open sys/lua/NPC_Mod/server.lua and add the following lines in the end of lua:

Code:
dofile("sys/lua/NPC_Mod/npcscripts/zombie.lua")
dofile("sys/lua/NPC_Mod/npcscripts/npc_war.lua")
dofile("sys/lua/NPC_Mod/npcscripts/suicidnik.lua")
dofile("sys/lua/NPC_Mod/npcscripts/npc_rpg.lua")
dofile("sys/lua/NPC_Mod/npcscripts/npc_berserk.lua")
dofile("sys/lua/NPC_Mod/npcscripts/vortig.lua")
dofile("sys/lua/NPC_Mod/npcscripts/zombfast.lua")
dofile("sys/lua/NPC_Mod/npcscripts/sniper.lua")
dofile("sys/lua/NPC_Mod/npcscripts/poison.lua")
dofile("sys/lua/NPC_Mod/npcscripts/drone.lua")
dofile("sys/lua/NPC_Mod/npcscripts/soldier.lua")

dofile("sys/lua/NPC_Mod/npcscripts/voltigore.lua")
dofile("sys/lua/NPC_Mod/npcscripts/combine_sniper.lua")
dofile("sys/lua/NPC_Mod/npcscripts/police_melee.lua")
dofile("sys/lua/NPC_Mod/npcscripts/police_pistol.lua")
dofile("sys/lua/NPC_Mod/npcscripts/police_smg.lua")
dofile("sys/lua/NPC_Mod/npcscripts/police_grenade.lua")
dofile("sys/lua/NPC_Mod/npcscripts/police_shotgun.lua")
dofile("sys/lua/NPC_Mod/npcscripts/combine_rpg.lua")
dofile("sys/lua/NPC_Mod/npcscripts/combine_rifle.lua")
dofile("sys/lua/NPC_Mod/npcscripts/combine_heavy.lua")
dofile("sys/lua/NPC_Mod/npcscripts/combine_super.lua")
dofile("sys/lua/NPC_Mod/npcscripts/dr_hax.lua")

dofile("sys/lua/NPC_Mod/npcscripts/stalker.lua")
dofile("sys/lua/NPC_Mod/npcscripts/turret.lua")
dofile("sys/lua/NPC_Mod/npcscripts/gargantua.lua")
dofile("sys/lua/NPC_Mod/npcscripts/cremator.lua")
dofile("sys/lua/NPC_Mod/npcscripts/rebel.lua")
dofile("sys/lua/NPC_Mod/npcscripts/manhack.lua")

dofile("sys/lua/NPC_Mod/npcscripts/antlion.lua")
dofile("sys/lua/NPC_Mod/npcscripts/demon.lua")
dofile("sys/lua/NPC_Mod/npcscripts/darksmall.lua")
dofile("sys/lua/NPC_Mod/npcscripts/darkrange.lua")
dofile("sys/lua/NPC_Mod/npcscripts/darkghost.lua")
dofile("sys/lua/NPC_Mod/npcscripts/darkimp.lua")


5) ° Start game and check new npcs on example map (you find it in the archive)
° mp_luamap must be activated (New game/More settings/mp_luamap 1)


> How to spawn NPCs:
1) console spawn (320 - x, 300 - y, 0 - rotation):
(change x,y,rot as you need)

lua "SpawnNPC('Bomber', 320, 300, 0)"
lua "SpawnNPC('Vortig', 320, 300, 0)"
lua "SpawnNPC('Combsuper', 320, 300, 0)"
etc...

2) Trigger_If spawn (condition string):

SpawnNPC('Bomber', 320, 300, 0)
SpawnNPC('Poison', 320, 300, 0)
etc...

> Full NPCs IDs list:

1) 2Gen's Extention:
Code:
War
Soldier
Sniper
Bomber
Assassin
zombie
Fast
Poison
Vortig
Suicidal
Drone
Voltigore
Polmelee
Polpistol
Polsmg
Polgrenade
Polshotgun
Combsniper
Combrpg
Combrifle
Combheavy
Combsuper
Hax
Stalker
Turret
Gargantua
Cremator
Manhack
Rebel
Antlion
Demon
Ghost
Darksmall
Darkrange
Imp


2) Starkkz's Pack:
Code:
HoundEye
Headcrab
Agrunt
Bullsquid
strider



In the future, I'll probably make new NPCs. Write to me with your suggestions.

∗ Credits:
• Lua scripts:
Starkkz NPC Pack
Avobolt Lua Effects
Mommy123 Snowball Freeze
Pseudon Shockwave

• Sprites/Sounds:
Ozzy
Factions
Alistaire
useigor
CY
OlaFPhp
Snark
J4x
The Grim Reaper
Pagyra
Doctor Freeman
FaqAp
The Camo
crazy junkman Wolfgang
Darkydude

> Changelog:
° (22/06/16) Version 1.0
- • Release

° (24/06/16) Update 1.1: Better soldiers
- • Added new classical H-L soldier with mp5 (sprite by Pagyra)
- • Changed old soldier to heavy soldier with shotgun
- • Added the ability to throw grenades (HE for Soldier and Flashbang to Heavy with 20% and 10% chances)
- • Added reloading sounds for all soldiers
- • Added 9 radio remarks during an attack \ alarm for all soldiers
- • Added 5 screams at the death for all soldiers
- • Added 3 radio remarks while moving for all soldiers
- • Added a sound for the assassin while attack
- • Added new bullets sprites for shotgun and mp5
- • Added new 7th skin for slow zombie (based on a sprite by The Grim Reaper)
- • Changed old sprite of fast zombie (sprite by Pagyra)


° (29/06/16) Update 1.2: Metropolice, Elite Combines + bonus NPCs
- • Added 5 Metropolice NPCs (Half-Life 2) with 5 variants of weapons and 11 skins (sprites by OlaFPhp, Doctor Freeman, FaqAp, The Camo)
- • Added 4 Elite Combines NPCs (Half-Life 2) with 4 variants of weapons and 5 skins (credits as in the previous)
- • Added Voltigore NPC (HL:Opposing Force) (sprite by useigor)
- • Added Super Combine robot NPC (HL2) (sprite by OlaFPhp)
- • Added Dr. Hax NPC (Wallace Breen HL2) (sprite by OlaFPhp)
- • Added original sounds from Half-Life 2\OF games for all NPCs
- • Updated servertransfer.lst, added all new gfx/sfx (total ~220 files)
- • New handy map for testing
- • Changed chances for HECU radio messages
- • Changed attack distance for fast zombie


° (30/06/16) Update 1.3: Gargantua and 5 HL2 NPCs
- • Added new mini-boss NPC - Gargantua (he has dual flamethrower and additional stomp attack)
- • Added new lua effect - shockwave for gargantua (script by Pseudon)
- • Added new NPC - Cremator (sprite by 2Gen)
- • Added new NPC - Stalker (based on a sprite by OlaFPhp)
- • Added new NPC - Turret(sentry gun) (sprite by OlaFPhp)
- • Added new NPC - Manhack (drone with blades) (based on a sprite by OlaFPhp)
- • Added new friendly NPC - Rebel (say !stop to stop him and !go to make him follow) (3 sprites by FaqAp)
- • Increased health for super combine
- • Updated test map
- • Updated serveftransfer.lst (total ~300 files)


∗ (5/07/16) Update 1.4(final): 5 Horror NPCs and HL2 Antlion
- • Added new horror NPC - Demon
- • Added new horror NPC - Ghost
- • Added new horror NPC - Dark soul (melee attack)
- • Added new horror NPC - Dark soul (ranged attack) (sprite by Darkydude)
- • Added new horror NPC - Imp (sprite bu Darkydude)
- • Added new HL2 NPC - Antlion (sprite by crazy junkman Wolfgang)
- • Added new dark map for testing horror npcs
- • Updated test map
- • Updated servertransfer.lst (total ~370 files)
- • Fixed sound while moving for Dr. Hax
- • Сompressed some .wav files into .ogg format

After the update 1.3 zip archive weighs almost 6 megabytes, so I packed it in the second 7z archive, sorry

(On screenshots shows not all NPCs)
( servertransfer file does not contain gfx/sfx from Starkkz's pack (only fixed headcrab) )
imageimageimageimageimage
edited 24×, last 05.07.16 05:20:18 pm
ok This file has been reviewed and approved by Sparty (22.06.16 07:01:10 pm)

Comments

60 comments
Goto Page
To the start Previous 1 2 3 Next To the start

Log in!

You need to log in to be able to write comments!Log in
16.07.18 09:52:04 pm
like I like it!
Up
Tw_M
User
Offline Off
Add the baby-gargantua from sven-coop.
02.01.18 06:49:23 pm
like I like it!
Up
@user CrazyPenguin: no, you need to add script gfx and sfx to server transfer list.
02.01.18 04:51:57 pm
like I like it!
Up
CrazyPenguin
User
Offline Off
Works fine (some scripts conflicted with this earlier in my folder)

Great NPC's only suggestion if Rebel would not follow you so close and keep some distance

If I run a dedicated server with this will all other players that join have all features without having this installed in their folders ? Will server download everything they need upon joining ?
02.01.18 06:53:34 am
like I like it!
Up
@user CrazyPenguin: Awesome, this is even better, now i can rule out some stuff. I will check later in day because of work in rl, and ill send you private message so we dont needlesly spam here when i figure out whats wrong.
01.01.18 11:02:15 pm
like I like it!
Up
CrazyPenguin
User
Offline Off
@user crazy junkman Wolfgang: I don't think sharing a single map would explain anything I upload my maps in map archive and npc don't even spawn on test maps that come with download

I even downloaded standalone CS2D client installed it and fresh placed everything inside again and still does not work

Here is my entire CS2D folder maybe someone can spot a problem

https://www.dropbox.com/s/az7begx1o15dv1u/CS2D.zip?dl=0
01.01.18 09:15:47 pm
like I like it!
Up
@user CrazyPenguin: Thats strange, it seems that you have done everything correctly, but for some reason it doesnt work.

I cant say much at this point, but i can help you out if youd share your map with me (which has set trigger_if) and i can try spawn npc on my own "listen" server. Then if i can spawn (script works fine with me) then problem is in your script instalment (maybe you instal wrong, or it colides with existing script if you have any prior to this one).
01.01.18 07:28:13 pm
like I like it!
Up
CrazyPenguin
User
Offline Off
@user crazy junkman Wolfgang: I did write the command right

https://imgur.com/g7KFkaM

even on test maps they don't spawn

so something was placed wrong...but don't know what since all I did is copy paste replace everything from zip folder in my CS2D, first the original one then this 2nd Gen, and then copy pasted the dofiles in NPC_Mod server.lua at the end (not touching any other code)
01.01.18 05:37:42 pm
like I like it!
Up
Hmm if you copy everything on end, then you probably write command wrongly in trigger_if, check the test maps that are included with script, open them in editor and study trigger_if there.

Just a small thing, you do know that coordinates are in pixels, not tiles? If you want to spawn npc in specific tile, then get coordinates and multiply with 32. So if you want to spawn npc in tile 10x10, your coordinates for trigger_if are 320x320 (xy) . And i like to add 16 for npc to be spawned in dead center.
01.01.18 04:23:55 pm
like I like it!
Up
CrazyPenguin
User
Offline Off
@user crazy junkman Wolfgang: I did, I copied and paste them on end in NPC_mod folder in server.lua
01.01.18 04:08:18 pm
like I like it!
Up
@user CrazyPenguin: You need to copy dofiles, did you done that?
01.01.18 01:12:45 pm
like I like it!
Up
CrazyPenguin
User
Offline Off
So I place a trigger with option "If lua condition is true"

and place in SpawnNPC('Bomber', 6, 51, 0)

and nothing happens no NPC is spawned in that location 6|51

I downloaded first the original copy/replace in CS2D folder, done the same with this 2Gen copy/replaced everything in CS2D folder, I have enabled mp_luamap 1 and copy paste the code in NPC_mode server.lua

But no NPC spawns at all, I even tried with command console and nothing, am I missing something ?
05.04.17 11:42:00 am
like I like it!
Up
Hey guys, in last update @user 2Gen: forgot to include one file, and without that file the script isn't working (at least 2Gen's part of script).
If anybody wants to know how to fix that, just contact me in pm and ill explain what needs to be done.


EDIT:
actually nvm my comment, everything works as it supose to be if instaled corectly
edited 2×, last 29.11.17 09:14:26 pm
27.11.16 09:38:24 pm
like I like it!
Up
HOLOgraphicSky
User
Offline Off
Wow, you done a big work to make default npc mod more epic and useful. It was 5 npcs, and now we have... 40? Really awesome. And gargantua and horror npcs looks great. Well, anybody made maps with this script?
16.07.16 04:52:16 pm
like I like it!
Up
CyanBros
User
Offline Off
@user 2Gen: I hope you will create another extension!
16.07.16 10:00:10 am
like I like it!
Up
@user 2Gen: if you will create second extension, i would suggest that you separate half life 1 and half life 2 npc-s

just a thought
16.07.16 08:00:34 am
like I like it!
Up
CyanBros
User
Offline Off
I like the horror one,some of them are powerful.
15.07.16 05:40:36 pm
Up
2Gen
User
Offline Off
@user Shrepard:
These NPCs will differ little from those that already exist. Zombine is just a zombie, and fast headcrab almost the same as normal headcrab or snark. There are some differences, but they are too small for creating new NPCs.
In addition, the file weighs 4.97 megabytes, I can't add more NPCs. Only if I will create a 2nd extension, but it needs at least 10 good NPCs, different from previous ones.
15.07.16 02:43:47 pm
like I like it!
Up
Shrepard
User
Offline Off
I like this but,you said this the final update and
What about fast headcrab,and zombine
Anyway you did a good job
15.07.16 01:37:13 am
like I like it!
Up
P_206
BANNED
Offline Off
Actually , i liked all of the map , not like somepepole are saying
05.07.16 02:38:03 pm
Up
2Gen
User
Offline Off
Mod updated. Current version - 1.4. (Last final version)
The total number of added NPCs: 35
To the start Previous 1 2 3 Next To the start