CB1993 wrote:Excellent! Thanks for that info.
I'm unable to experiment with that in mind, however, I won't be able to so for a bit.
In the meantime, there are a few things I would like to clear up:
1. Does this force the npc to fire his weapon at a constant rate until his clip is empty, or does his AI kick in and have him use bust fire techniques?
2. How can I make them fire a single shot? This would be particularly useful for pistols and shotguns.
3. Does this sequence in the qc.file have him shoot wherever the barrel of the gun is pointing, or does he still need to focus on something like an enemy or a bullseye?
Thanks!
I haven't tested it myself, but this is how I understand it to work:
It will be a single shot. There are a couple other events that will do a SMG burst also.
The shot will come out the barrel of the gun no matter where it's pointing. The AI of the character has little to do with it.
Here's an example of a combine soldier doing a short AR2 burst as part of an animation:
- Code: Select all
$sequence leanwall_right_exit "leanwall_right_exit" fps 30.00 {
{ event AE_NPC_MUZZLEFLASH 11 "COMBINE MUZZLE" }
{ event AE_NPC_MUZZLEFLASH 13 "COMBINE MUZZLE" }
{ event AE_NPC_MUZZLEFLASH 15 "COMBINE MUZZLE" }
{ event 3007 11 "1" }
{ event 3007 13 "1" }
{ event 3007 15 "1" }
}
I'm not sure what the "1" does. It might be something specific to that NPC.