Dateien

> > CS2D > Lua Scripts > 2Gen's Extension for Starkkz's NPC Pack
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch 2Gen's Extension for Starkkz's NPC Pack >

62 Kommentare4,97 mb, 900 Downloads

alt 2Gen's Extension for Starkkz's NPC Pack

2Gen
User Off Offline

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:

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:
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:
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) )
24× editiert, zuletzt 05.07.16 17:20:18
Zugelassen von Sparty

Download Download

4,97 mb, 900 Downloads

Kommentare

62 Kommentare
Seite
Zum Anfang Vorherige 1 2 3 4 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

2Gen
User Off Offline

@user Lobwver: I'm currently working on an update that adds HL2 metropolice and combines. It has been completed at 70%. Perhaps it will be fully completed by the evening or tomorrow.
Mod updated. Current version - 1.2.
1× editiert, zuletzt 29.06.16 13:46:41

alt

sonkii
User Off Offline

So,there have "people" suggested npcs?
Ich mag es!

alt

Lobwver
User Off Offline

Yeaaah, it looks really better with these graphics.
Good work, hope you will add more HL npcs, keep this file updated!
Ich mag es!

alt

2Gen
User Off Offline

Thank you all for your comments and rating. The new update will be tonight. The changes will relate to the HECU soldiers.

Mod updated. Current version - 1.1.
1× editiert, zuletzt 24.06.16 22:11:16

alt Keep update.

Baloon
GAME BANNED Off Offline

Would be better next update, give you like
Ich mag es!

alt

sonkii
User Off Offline

What about more npc:
In my mind:
HEV scientist = carries rpg,mp5,spasshotgun and tau cannon.
He is strong than barney (like gordon does).He is carry lot of weapons.

Pink (Mantega) Vortigaunt=spit players,slow the players,it runs very faster!

Rage Bullsquid = same sprite of normal but red a bit,5x normal spit and melee,It can throws five toxic spit.

Rage Headcrab = same sprite of normal but red-ish.This headcrab jump 5x from the normal headcrab.When it get killed,the headcrab exploded.So players need use a gun to kill it!

That's all!
Ich mag es!
1× editiert, zuletzt 24.06.16 16:19:59

alt

TrialAndError
User Off Offline

@user SANTER:

1
2
3
4
5
npc_name.spritescalex = 1
npc_name.spritescaley = 1.1

npc_war.width = 36 -- These 2 are for hitboxes, the bigger the image, the bigger the hitbox should be.
npc_war.height = 36

1 means that it's fullscale (100% of the original image)

1.1 means that it's 10% bigger than it's normal size. Same goes for 0.9..0.1 - It decreases the size by 10% for every .1 and increases for every .1 bigger than 1

alt

SANTER
User Off Offline

i like it, how can i change the size of the npc ?
Ich mag es!

alt

4Vendetta
User Off Offline

Would be awesome npc's that only fights against one team. ex. zombies npc's only attack counter-terrorists while playing in zombie mod.
Ich mag es!

alt

Masea
Super User Off Offline

I'll give you some suggestions but they won't be for the new NPC.

Compare HECU soldiers as an orginal game. Add radio sounds, throwing grenades or something like mp5 grenade. Long time ago, I tried it on the default NPCs. You can see how it works on this video;
https://www.youtube.com/watch?v=221g_EUY2HU Start watching at 4:44
Ich mag es!
1× editiert, zuletzt 15.07.16 19:29:37

alt

Shrepard
User Off Offline

Gargantua?

It shoots fire and catch the player
Just a idea
Ich mag es!

alt

Gaios
Reviewer Off Offline

nice work
Ich mag es!

alt

sonkii
User Off Offline

My suggestion:
Barney = who help the players and follow a player.If he get shotted by the players he will annoyed and start shooting the players.(sprite by user useigor)(weapon=Glock-17 in hl1)

Scientist = Walking around,healing players and if they get shotted they will afraid of players and other enemy npc too.(idk who made this sprite)(weapon=coward and dont have any weapons)



Tested at older cs2d version...

Thats all!

@user Pagyra: I think user Yates is talking about this npcs sprite (CNPC)
Ich mag es!
1× editiert, zuletzt 24.06.16 06:52:54

alt

Yates
Reviewer Off Offline

Please change the skins to have a black transparency. This will remove the ugly white outlining of sprites when they are rotated.
1× editiert, zuletzt 23.06.16 17:09:06

alt

sonkii
User Off Offline

[Removed]
Ich mag es!
1× editiert, zuletzt 24.06.16 11:49:40

alt

Shrepard
User Off Offline

Good job...
Ich mag es!

alt

2Gen
User Off Offline

@user TrialAndError: Thanks to Starkkz for this Bullsquid.lua script. Its base is suitable for any NPC with a distance attack, and don't need to invent something new.
Zum Anfang Vorherige 1 2 3 4 Nächste Zum Anfang