Feature #25993

Firing effects for static weapons

Added by Danil-ch over 3 years ago. Updated over 3 years ago.

Status:Closed Start date:10/30/2011
Priority:Normal Due date:
Assignee:Sickboy % Done:

100%

Category:Script
Target version:1.13
Component:sys_particlefx Affected Version:
Close Reason:

Description

obs
no smoke from the barrel when fired.
exp
smoke from the barrel when fired.

repro
1. place static weapon in editor
2. fire
or start the repro mission

statd_fire_test.avi (3.9 MB) Danil-ch, 10/30/2011 05:19

statd_fire_test.utes.pbo (2.2 kB) Danil-ch, 10/30/2011 05:19

ace_sys_particlefx.pbo (56.8 kB) Sickboy, 11/03/2011 14:43

Associated revisions

Revision 3c383128
Added by Sickboy over 3 years ago

~ CHANGED: ParticleFX enabled for StaticMGWeapons. fixes #25993

Revision 807fa0d1
Added by Sickboy over 3 years ago

FIXED: Only one effect was active. fixes #25993

Revision fc200e67
Added by Sickboy over 3 years ago

~ CHANGED: ParticleFX enabled for all StaticWeapons. fixes #25993

History

Updated by rocko over 3 years ago

  • Status changed from New to Feedback

Isn't this a vanilla bug?

Updated by Danil-ch over 3 years ago

no ACE only

Updated by Sickboy over 3 years ago

  • Status changed from Feedback to Assigned
  • Assignee set to q1184
  • Target version set to 1.13

Cheers. Is the smoke working when CBA is running (without ACE etc)?

Updated by Danil-ch over 3 years ago

yes with CBA (only) it's working.

Updated by Sickboy over 3 years ago

  • % Done changed from 0 to 20

Thanks!

Updated by Sickboy over 3 years ago

  • Status changed from Assigned to Feedback

Q11 is this intended or probably bug?

Updated by Sickboy over 3 years ago

  • Assignee changed from q1184 to zGuba

There seems to be no ParticleFX scripts/eventhandlers setup for the static weapons, not in ACE, nor in Vanilla.
I suppose there is some other engine effect with smoke available by default on static weapons? I reckon this is disabled in ACE, or perhaps bug :O

Updated by zGuba over 3 years ago

It should be up by muzzle FX bulletwise. I'll check

Updated by Sickboy over 3 years ago

zGuba wrote:

It should be up by muzzle FX bulletwise. I'll check

No EventHandler, no effect.

The eventhandler should be _this call BIS_Effects_EH_Fired; and in many vehicles / units was automatically added through class DefaultEventHandlers. (if CfgVehicles entry had class EventHandlers: DefaultEventHandlers {};) (http://browser.dev-heaven.net/configclasses/config/DefaultEventhandlers?version=54)

Which are active on (incl subclasses): Car, Tank, Helicopter, Plane, Ship, AAV, AH6X_EP1

BIS_Effects_EH_Fired:

private ["_amm"];
_amm=_this select 4;
_this call (call compile GetText (configFile >> "CfgAmmo" >> _amm >> "muzzleEffect"));

Interesting enough in vanilla there is no eventhandler on StaticMGWeapon either so its not working in vanilla either.

http://browser.dev-heaven.net/cfg_vehicles/config/M2StaticMG?version=54#L226

rocko wrote:

Isn't this a vanilla bug?

Yes, should be.

Updated by zGuba over 3 years ago

Yeah it shouldn't interfere with smoke FX from what I know.

Updated by Sickboy over 3 years ago

  • Status changed from Feedback to Resolved
  • % Done changed from 20 to 100

Updated by Sickboy over 3 years ago

Updated by Sickboy over 3 years ago

  • File ace_sys_particlefx.pbo added
  • Category set to Script
  • Assignee changed from zGuba to Sickboy
  • Component set to sys_particlefx

Please confirm fix.

Updated by Sickboy over 3 years ago

  • Tracker changed from Bug to Feature
  • Subject changed from Firing effects not work on static weapons. to Firing effects for static weapons

Updated by Danil-ch over 3 years ago

Fixed for machine guns but still not working on static grenade launchers (AGS-30, Mk. 19).

Updated by Sickboy over 3 years ago

Updated by Sickboy over 3 years ago

Thanks!
Here you go :)

Updated by Sickboy over 3 years ago

  • File deleted (ace_sys_particlefx.pbo)

Updated by Danil-ch over 3 years ago

Fixed.
Great job!

Updated by Sickboy over 3 years ago

  • Status changed from Resolved to Closed

Available in the about to be released ACE for OA 1.13 RC2.

Also available in: Atom PDF