Posts: 52
Threads: 15
Joined: Jun 2011
hello everyone! Can someone tell me link or pastebin link for some bots where i can kill them for score?? i have a Call Of Duty Modern Warfare 2 server and when there are no players i want some bots when im killing them i get score. I want them to shoot too. If someone knows please help me
Double-O-Seven
Unregistered
There was a plugin which supported killing NPCs, however, it's been deleted and is now forbidden.
However, it's possible to make NPCs killable and shooting NPCs with a filterscript, but trust me, if anyone creates this, he probably won't give it away... unless you pay him.
Posts: 52
Threads: 15
Joined: Jun 2011
ok but if i can make it then can you tell me how?
Double-O-Seven
Unregistered
NPC dies
Use a function like OnPlayerShootPlayer, store health as PVar, take health. Apply death animation when health is 0.
Done. NPC can be killed.
NPC shoots
To make an NPC shoot at you, make the player looking at you (calculating and setting facing angles), apply shooting animation, and add particles and sounds when NPC is shooting.
NPC walks (smooth [theoretically])
Apply walk animation, block OnPlayerUpdate with "return 0;" for the NPC, after a certain time, update his position using for example MapAndreas an use "return 1;" in OnPlayerUpdate. And apply walk animation again.
The position update requires some calculations with speed etc.
Now you have an awesome NPC script!