Forum

> > CS2D > Mods > NPC Pack: Ideas
Forums overviewCS2D overview Mods overviewLog in to reply

English NPC Pack: Ideas

70 replies
Page
To the start Previous 1 2 3 4 Next To the start

old Re: NPC Pack: Ideas

useigor
User Off Offline

Quote
Positions of HB and CT before HB jump = HB1 and CT1; After HB jump = HB2 and CT2.
IMG:https://s020.radikal.ru/i710/1310/48/8a5fcff3a31c.jpg

There is already no player on CT1 but HB stopped there. In fact HB should be under center of word "HB2" on image.

old Starkkz,

Pagyra
User Off Offline

Quote
Can you do full pack monsters of Half-life?
IMG:https://unrealsoftware.de/u_scr/u87cd_4d93a32fs1.jpg

hl1 strooper
hl1 bullsquid
hl1 pit drone
hl1 gargantua
hl2 ant
hl2 poison headcrab
hl2 fast zombie
...
OR

Can you write a script, which improves intelligence of standard NPCs?
I can help you with it.

old Re: NPC Pack: Ideas

Starkkz
Moderator Off Offline

Quote
@user Pagyra: It's impossible to modify NPCs without hex-editing, which is something illegal. But I can script some of these NPCs that you listed.

old Help NPC

Agustindz23
User Off Offline

Quote
security personnel: follow and he can shoot the other NPC(Zombie, Agrunt, HeadCrab, Snark and others)
the scientist:you can follow and can give you life if you need it

old Re: NPC Pack: Ideas

useigor
User Off Offline

Quote
user Starkkz, please, make snark script. Same as standard but he dies after 10 seconds and moves in random directions for random time.

old Re: NPC Pack: Ideas

iLoveUS
User Off Offline

Quote
Team NPC, for example a "soldier" NPC is on CT team, so they will only attack Terrorist and they won't attack CT.

old Re: NPC Pack: Ideas

RisingXD
User Off Offline

Quote
I would like npc that can be spawn using map editor.
Like any entity set : 'headcrab,hp20'
Can you make easy editing npc?

old Cow, sheep, pig

AlcatrazZ
BANNED Off Offline

Quote
I need NPC who walk and not attack. I will be grateful if you add NPCs such as cow, sheep, pig. It would be nice to see that when someone attacks NPC, these NPC will run like in the script EngiN33era.

old Re: NPC Pack: Ideas

Pagyra
User Off Offline

Quote
Using a lua you can make standard NPCs be anyone, i can help you with it to make more NPCs type without hex-editing.

old Re: NPC Pack: Ideas

DarkNeko
User Off Offline

Quote
can you make air strike is spawn soldier
and can you make soldier is friend with ct
good lua

sorry when my english is bad

old Re: NPC Pack: Ideas

Dousea
User Off Offline

Quote
@user DarkNeko: It can be done with Lua:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
airstrike = {}
airstrike.throw = {}

for id = 1, 32 do
	airstrike.throw[id] = {}
	airstrike.throw[id].state = false
	airstrike.throw[id].x = 0
	airstrike.throw[id].y = 0
end

local hooks = {"clientdata", "attack", "always"}

for key, hook in pairs (hooks) do
	addhook (hook, "airstrike." .. hook)
end

function airstrike.clientdata (id, mode, data1, data2)
	if (mode == 2) then
		airstrike.throw[id].x = ((data1 / 32) - 16)
		airstrike.throw[id].y = ((data2 / 32) - 16)
	end
end

function airstrike.attack (id)
	if (airstrike.throw[id].state) then
		airstrike.throw[id].state = false
		
		parse ("spawnnpc 5 " .. airstrike.throw[id].x .. " " .. airstrike.throw[id].y .. " " .. math.random (1, 360))
	end
end

function airstrike.always ()
	for key, id in pairs (player (0, "table")) do
		if (player (id, "weapontype") == 76) then
			if (not airstrike.throw[id].state) then
				airstrike.throw[id].state = true
			end
		else
			airstrike.throw[id].state = false
		end
	end
end
Not tested. It should work.
To the start Previous 1 2 3 4 Next To the start
Log in to reply Mods overviewCS2D overviewForums overview