Difference between revisions of "cmf gameplay fnc flashbangOverride"

From cluster wiki
Jump to navigation Jump to search
(Created page with "{{CMF Function |game1=arma3 |version1=0.50 |game2=cmf3 |version2=2.1.0 |descr=This function will override the flashbangs defined in '''cmf_gameplay_flashbang_grenades''' wi...")
 
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
|x1= {{code|lang=scilab|[] call cmf_gameplay_fnc_flashbangOverride}}
|x1= {{code|lang=scilab|[] call cmf_gameplay_fnc_flashbangOverride}}


|var1= {{!}} LOCAL {{!}}{{!}} Mission {{!}}{{!}} cmf_gameplay_flashbang_grenades {{!}}{{!}} An [https://community.bistudio.com/wiki/Array Array] containing the flashbang configurations in format [grenadeClass, [fuzeDelay, bangs, bangDelay]].   
|seealso= [[cmf_gameplay_fnc_repairRearmStation]] [[cmf_gameplay_fnc_restrictedVehicle]]
|var2= {{!}} GLOBAL {{!}}{{!}} Mission {{!}}{{!}} cmf_gameplay_flashbang_extraEffects {{!}}{{!}} Contains the function used to spawn the visual effects if grenade goes of inside a building. Takes these parameters: [Position: Position ASL, inBuilding: Boolean]
[[cmf_gameplay_fnc_safeStart]] [[cmf_gameplay_fnc_tracers]]
|var3= {{!}} GLOBAL {{!}}{{!}} Mission {{!}}{{!}} cmf_gameplay_flashbang_explosion {{!}}{{!}} Contains the function used to spawn the visual effects and sound effects. Takes these parameters: [Position: Position ASL, inBuilding: Boolean]
 
|event1= {{!}} LOCAL {{!}}{{!}} cmf_common_onUnitRoleChanged {{!}}{{!}} [Unit, Role, Team] {{!}}{{!}} Is fired locally for unit when the unit's role is changed.
|var1= {{!}} GLOBAL {{!}}{{!}} Mission {{!}}{{!}} cmf_gameplay_flashbang_grenades {{!}}{{!}} An [https://community.bistudio.com/wiki/Array Array] containing the flashbang configurations in format [grenadeClass, [fuzeDelay, bangs, bangDelay]].   
|var2= {{!}} LOCAL {{!}}{{!}} Mission {{!}}{{!}} cmf_gameplay_flashbang_extraEffects {{!}}{{!}} Contains the function used to spawn the visual effects if grenade goes of inside a building. Takes these parameters: [Position: Position ASL, inBuilding: Boolean]
|var3= {{!}} LOCAL {{!}}{{!}} Mission {{!}}{{!}} cmf_gameplay_flashbang_explosion {{!}}{{!}} Contains the function used to spawn the visual effects and sound effects. Takes these parameters: [Position: Position ASL, inBuilding: Boolean]
}}
}}

Latest revision as of 21:44, 17 December 2022


Hover & click on the images for description
Description
Description:
This function will override the flashbangs defined in cmf_gameplay_flashbang_grenades with more realistic effects and sounds. This will be automatically called if enabled in cmf_config.hpp.
Execution:
Call
Groups:
CMF3: gameplay
Syntax
Syntax:
[] call cmf_gameplay_fnc_flashbangOverride
Return Value:
None
Examples
Example 1:
[] call cmf_gameplay_fnc_flashbangOverride
Additional Information
See also:
cmf_gameplay_fnc_repairRearmStation cmf_gameplay_fnc_restrictedVehicle cmf_gameplay_fnc_safeStart cmf_gameplay_fnc_tracers
Internal Variables
Locality Namespace Name Description
GLOBAL Mission cmf_gameplay_flashbang_grenades An Array containing the flashbang configurations in format [grenadeClass, [fuzeDelay, bangs, bangDelay]].
LOCAL Mission cmf_gameplay_flashbang_extraEffects Contains the function used to spawn the visual effects if grenade goes of inside a building. Takes these parameters: [Position: Position ASL, inBuilding: Boolean]
LOCAL Mission cmf_gameplay_flashbang_explosion Contains the function used to spawn the visual effects and sound effects. Takes these parameters: [Position: Position ASL, inBuilding: Boolean]
Events
No events
Notes