GSC reference › Built-in
AddBoltedFXExclusionVolume()
Built-in (engine)
Client
Gfx
Create a bolted volume that will exclude FX that are flagged as "Respect Exclusion Volumes". Returns volume ID.
Signature
AddBoltedFXExclusionVolume(<localClientNum>, <entity>, <tag name>, <half extents>, [offset])
Parameters
| Name | Required? | Details |
|---|---|---|
| localClientNum | Required | The local client to create the volume on. |
| entity | Required | The entity to attach the volume to. |
| tag name | Required | The tag to use as the volume's origin. |
| half extents | Required | The half extents of the volume. |
| offset | Optional | An offset from the tag name for the volume's origin; default is 0 0 0. |
Returns
Returns volume ID.
Example (from Treyarch's docs)
volumeID = AddBoltedFXExclusionVolume( 0, entity, tag_origin, (10, 10, 10) )
Real uses in BO3's scripts
Called 5 times in the decompiled scripts. A few, zombies first:
- scripts/zm/zm_zod_train.csc, line 90
self.var_c604c399 = addboltedfxexclusionvolume(localclientnum, self.mdl_tag, "tag_origin", (768 / 2, 184 / 2, 296 / 2)); - scripts/cp/cp_mi_zurich_newworld_util.csc, line 548
self.var_c604c399 = addboltedfxexclusionvolume(localclientnum, self.mdl_tag, "tag_origin", (1300 / 2, 450 / 2, 500 / 2)); - scripts/cp/cp_mi_zurich_newworld_util.csc, line 572
var_c828a8ed.var_c604c399 = addboltedfxexclusionvolume(localclientnum, var_c828a8ed.var_44fe3058, "tag_origin", (10240 / 2, 400 / 2, 288... - scripts/cp/cp_mi_zurich_newworld_util.csc, line 575
var_30cb37a9.var_c604c399 = addboltedfxexclusionvolume(localclientnum, var_30cb37a9.var_44fe3058, "tag_origin", (2928 / 2, 400 / 2, 288 /... - scripts/cp/cp_mi_zurich_newworld_util.csc, line 580
s_org.var_c604c399 = addboltedfxexclusionvolume(localclientnum, s_org.var_44fe3058, "tag_origin", (1300 / 2, 600 / 2, 680 / 2));
Related built-ins
- RemoveFXExclusionVolume()Removes the given exclusion volume.
- AddFXExclusionVolume()Create a volume that will exclude FX that are flagged as "Respect Exclusion Volumes".
- FindVolumeDecalIndexArray()Returns an array indices of a volume decal whose targetname matches the passed in string
- SetClientVolumetricFog()Set the client volumetric fog properties
- HideVolumeDecal()Hide a static model
- UnhideVolumeDecal()Unhide a static model
- GetServerVolumetricFogDensity()Get the density of server volumetric fog
- SetLutVolumeActiveBank()Set lut volumes active bank bit mask.
- SetServerVolumetricFogDensity()Set the density of server volumetric fog
- SwitchToClientVolumetricFog()Switch to the client volumetric fog
- SwitchToServerVolumetricFog()Switch to the server volumetric fog
- GetClosestPointOnNavVolume()Get a point on nav volume that's closest to the given position within radius.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).