English Soldiers NPC reload

7 replies
Goto Page
To the start Previous 1 Next To the start
31.07.14 09:40:15 am
Up
Pamoon
User
Offline Off
Yup, i think u known, the Soldiers NPC is always shoot and it still happen. I think it impossible, right? only DC can? but i need someones can help me, thx.
31.07.14 09:47:22 am
Up
XoOt
Super User
Offline Off
Try to use proper english so we might understand what you're trying to say.
31.07.14 10:29:41 am
Up
Mora_rus
User
Offline Off
@user XoOt: i guess he wanna:
For Soldiers reload their weapon...
@user Pamoon: i guess they using script "no reaload" that's why they attack inf.
31.07.14 10:41:43 am
Up
TrialAndError
User
Offline Off
dey got no relod hax. report to dc
31.07.14 12:03:00 pm
Up
Raaj Nadar
User
Offline Off
Are you trolled you want to report a non living thing. I think your post should be in suggestions.

Lol hahahaha.
31.07.14 01:56:14 pm
Up
Pagyra
User
Offline Off
Check this and use lua
Quote:
us My NPCs info:
--------
1 - Zombie (weapons id 249)
2 - Headcrab (weapons id 249)
3 - Snark (weapons id 249)
4 - Vortigaunt (weapons id 249)
5 - Soldier (weapons id 248)

∗ All npc can be moved as images - use command "imagepos" for move it.

Hooks of attack for different NPCs:

• Zombie:
target ~= 0
countdown = -50
rotvar = 40

• Headcrab:
target ~= 0
countdown = -20
rotvar = 20

• Snark
target ~= 0
countdown = -15
rotvar = 20

• Vortigaunt
For melee attack
target ~= 0
countdown = -50
rotvar = 40

For range attack
target ~= 0
countdown = -50
upgrade = 1 to 40 - It see its target and charge blast
upgrade = 0 - Attack moment or if there is no target

• Soldier
countdown = 7
target ~= 0

√ Returns a value of NPCs:

exists: boolean, 1(true) if NPC with this ID exists, 0(false) otherwise - if not exists.
typename: name of the type of this NPC
type: internal type ID of this NPC (1 - 5 meanings depending on type)
health: health value
mode: current mode (depending on type) - unknown
team: team of NPC
player: player - returns NPC ID
x: current x position on map (in pixels)
y: current y position on map (in pixels)
rot: current rotation angle (in degrees)
tilex: current x position on map (in tiles)
tiley: current y position on map (in tiles)
countdown: countdown variable (cycle of countdown from/to values specifically for every NPC)
rootrot: original rotation of NPC (angle at spawn)
idle: idle value - unknown - sometimes this value changes when NPC move
rotvar: rotation variable (this value changes in melee attack)
target: current NPC target - returns player id (and 0 if there is no target)
upgrade: upgrade value (countdown between shots for NPC)
entity: boolean, true if NPC is spawned by entity, false otherwise if NPC is spawned by lua command
entityx: x-coordinate (tile) of entity which spawned this NPC
entityy: y-coordinate (tile) of entity which spawned this NPC

I hope that someone of you, who are not be so lazy as others in this community, can use this info to create nice script or mb mod with NPC.
edited 6×, last 01.08.14 09:50:10 am
31.07.14 05:46:11 pm
Up
Forzegrew
User
Offline Off
I never see this .
04.08.14 10:09:42 am
Up
Pagyra
User
Offline Off
there is no one to add something about NPC?
To the start Previous 1 Next To the start