"SmokNiszczyciel" said: I also need to know how to make AI follow waypoints but if enemy seen then attack
And i know it's possible because i saw it in some mod If you've seen it in another mod, then try to figure out which mod that was, and learn how the pathfinding was done from its code.
"SmokNiszczyciel" said: By the way, these weapons wont work because if player picks up another plasma rifle then it will add him ammo what i dont want, i want each plasma rifle have its own clip Then you're going to need to create an ammo bar for every weapon that's gonna have this feature, and every time it hits zero, use up the weapon. IIRC (I wonder if I recall correctly a lot. ) the Opposing Force mod has an ammo clip system and twenty different weapons, but the way it did it was to spend separate ammo objects, which isn't what you wanted to do.
... Oh, I JUST got the BEST idea EVER. IIRC (Again), there's support for having multiple inventories in the game. Just create an ammunition inventory, fill it with whatever ammo you want the player to have, and create a bar shown to the player called Ammunition. As the ammo in the inventory is spent to fire the weapon, it changes the reading on the bar (Logically), and when it's out, the gun simply doesn't work. This'll give the illusion that the gun was entirely self-contained, and the end user never has to manage ammo.
Good luck!
|