Jump to content

About alt - fire in npcs


Langerd

Recommended Posts

Posted (edited)

I found somewhere that you must use a script to make npc alt firing.

-set ( /*@SET_TYPES*/ "SET_ALT_FIRE", /*@BOOL_TYPES*/ "true" );

But i have question about how to make them using the blaster pistol shot but charged one?
This is more advanced scripting i guess

And also i find a glitch - when npc with repeater has a alt_fire on it works fine (when i am like 3-5 meteres from him) but if i will come closer... he starts shooting normal bullets but only one. How to make him shooting alt fire all the time? (sry for english i am polish)

Edited by Langerd
Posted

So far the repeater is glitched... bowcaster doesnt work ,blaster pistol doesnt work... i thing it is hardcoded or bugged. Cncussion rifle works :) but it deals only 20 dmg when Rax hits me. Cultists are shooting alt_fire at me and evade attacks (It is cool :3).

Posted

This has been asked before. The alt-fire flag is overrided by AI and it's very specific as to what you're doing it for.

Make sure you're wrapping it in an affect("script_targetname"). Two NPCs can never have the same script_targetname.

Posted

i think is not bugged. it's realistic. 

Because the alt fire of repeater is an explosive splash damage attack. no soldier is so mad of blow himself in a close fire shooting.

For that motivation, stormtroopers use normal fire of repeater when you are close. :)

maybe happens the same thing with flechette alt fire.

Posted

Yep I checked. The stormtrooper officers are shooting normal when i am close. But normaly.

 

Repeater is bugged :/ when i am close they start shooting normal but They DONT fire 6 shots - pause- 6 shots! They fire 1 shot -pause- 1 shot. And this is bugged.

Posted

Yep I checked. The stormtrooper officers are shooting normal when i am close. But normaly.

 

Repeater is bugged :/ when i am close they start shooting normal but They DONT fire 6 shots - pause- 6 shots! They fire 1 shot -pause- 1 shot. And this is bugged.

ah yes, i agree, this is bugged.i  suppose is because alt fire atk is configured for shot... 1 shot: the explosive atk. :D if you change in the code the number of shot of the alt fire in close combat i supose also the alt fire distance shot shoots many shockballs. rotfl XD

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...