Starkkz's NPC Pack 
66 comments Hello, this is a pre-release of my NPC Pack for CS2D, I'm just uploading this as the thread seems that it's going to die and I don't know if someone will take this but I'm leaving it for you to use it.
AI Features
A* Pathfinding
Angle calculation
Distance calculation
Target finding
NPCs
Strider
HoundEye
HeadCrab
Alien Grunt
Bullsquid
How to spawn a NPC?
You have to use the lua command SpawnNPC
Probably I will keep adding NPCs to this pack, you can suggest more ideas at the thread
NPC Pack: Ideas.
Credits to
useigor for some sprites.











How to spawn a NPC?
You have to use the lua command SpawnNPC
In Lua has written:
SpawnNPC('name of the NPC', x, y, rotation)
In console has written:
lua "SpawnNPC('name of the NPC', x, y, rotation)"
NPC names has written:
Strider
HoundEye
Headcrab
Agrunt
HoundEye
Headcrab
Agrunt
Probably I will keep adding NPCs to this pack, you can suggest more ideas at the thread


Credits to


edited 11×, last 29.08.15 12:06:05 am

Comments
66 commentsLog in!
You need to log in to be able to write comments!Log in

Cool script. And very useful. Why I don't see any servers with this awesome mod? The author seems a really good lua programmer.

Wow, amazing. Too bad that I had not found this script before. I hope you will add new NPCs, using any effects (explosion, laser, fog).
In addition, I found in the archive crysis2_cell.lua and zombie.lua. It is strange that you have not completed their (zombies only requires adding a couple lines of code; cell.lua harder to fix. I almost made it, but eventually took the hl_bullsquid as a base for new soldier npc) (just I'm not a programmer, encoder :D)
For those who cant spawn strider- his ID is "strider" (lower case) not "Strider" with a capital letter like all the other NPCs. (lua "SpawnNPC('strider', 320, 320, 0)" -- for example will spawn strider in the upper left corner of the map with 10,10 coordinates of tiles)
I forgot to say, in the archive missing headcrab sounds. Add them the next time, if you can.
In addition, I found in the archive crysis2_cell.lua and zombie.lua. It is strange that you have not completed their (zombies only requires adding a couple lines of code; cell.lua harder to fix. I almost made it, but eventually took the hl_bullsquid as a base for new soldier npc) (just I'm not a programmer, encoder :D)
For those who cant spawn strider- his ID is "strider" (lower case) not "Strider" with a capital letter like all the other NPCs. (lua "SpawnNPC('strider', 320, 320, 0)" -- for example will spawn strider in the upper left corner of the map with 10,10 coordinates of tiles)
I forgot to say, in the archive missing headcrab sounds. Add them the next time, if you can.

Working !
But only works: Bullsquid / HoundEye and Agrunt
But only works: Bullsquid / HoundEye and Agrunt
edited 1×, last 10.02.16 07:42:47 pm

I have to suggest:
Smoker - L4D
Raptor - HL2 Ep2
Rebel - HL2 Ep1 & Ep2
Medic Rebel - HL2 Ep1 & Ep2
Or just complete the pack of Half-Life 1, that maybe help
useigor with him mod (half-life 2d).
Smoker - L4D
Raptor - HL2 Ep2
Rebel - HL2 Ep1 & Ep2
Medic Rebel - HL2 Ep1 & Ep2
Or just complete the pack of Half-Life 1, that maybe help


hm... Why in first video someone said High latency leads to unexpected results ? What is that mean ?
20.06.14 06:02:26 am

@Starkkz what say command for Spawning NPC Strider?
It doesn't work for console command!
Sorry my english bad
It doesn't work for console command!
Sorry my english bad
@
DarkNeko: sorry but your suggestions have nothing to do with my NPC pack, you have to ask on the forum for that script.


can you make air strike is spawn soldier
and can you make soldier is friend with ct
sorry when my english is bad
and can you make soldier is friend with ct
sorry when my english is bad