‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
margwa.gsc File Reference

Go to the source code of this file.

Functions

function AddDirectHitWeapon (weaponName)
 
function private ArchetypeMargwaBlackboardInit ()
 
function private ArchetypeMargwaOnAnimscriptedCallback (entity)
 
function private BB_GetShouldTurn ()
 
function autoexec init ()
 
function private InitDirectHitWeapons ()
 
function private InitMargwaBehaviorsAndASM ()
 
function private inSmashAttackRange (enemy)
 
function private isDirectHitWeapon (weapon)
 
function margwaCanDamageAnyHead ()
 
function margwaCanDamageHead ()
 
function private margwaCloseAllHeads (closeTime)
 
function private margwaCloseHead (headInfo)
 
function margwaDamage (inflictor, attacker, damage, dFlags, mod, weapon, point, dir, hitLoc, offsetTime, boneIndex, modelIndex)
 
function private margwaDeath ()
 
function private margwaDeathAction (entity)
 
function private margwaDestroyHead (modelHit)
 
function private margwaDisableStun ()
 
function margwaEnableStun ()
 
function margwaForceSprint ()
 
function private margwaHeadCanOpen ()
 
function private margwaHeadDamageDelay (headInfo, canDamage)
 
function private margwaHeadHit (entity, partName)
 
function private margwaHeadSmash ()
 
function private margwaHeadUpdate (headInfo)
 
function private margwaIdleStart (entity)
 
function private margwaInitHead (headModel, headTag)
 
function margwaKillHead (modelHit, attacker)
 
function private margwaMoveStart (entity)
 
function private margwaNotetrackBodyfall (entity)
 
function private margwaNotetrackPainMelee (entity)
 
function private margwaNotetrackSmashAttack (entity)
 
function private margwaPainStart (entity)
 
function private margwaPainTerminate (entity)
 
function private margwaReactIDGunStart (entity)
 
function margwaReactIDGunTerminate (entity)
 
function private margwaReactStunAction (entity, asmStateName)
 
function private margwaReactStunStart (entity)
 
function margwaReactStunTerminate (entity)
 
function private margwaReactSwordStart (entity)
 
function private margwaReactSwordTerminate (entity)
 
function private margwaResetHeadTime (min, max)
 
function margwaSetGoal (origin, radius, boundaryDist)
 
function margwaSetHeadHealth (health)
 
function private margwaShouldFreeze (entity)
 
function private margwaShouldReactIDGun (entity)
 
function private margwaShouldReactStun (entity)
 
function private margwaShouldReactSword (entity)
 
function private margwaShouldReset (entity)
 
function private margwaShouldShowPain (entity)
 
function margwaShouldSmashAttack (entity)
 
function private margwaShouldSpawn (entity)
 
function margwaShouldSwipeAttack (entity)
 
function private margwaShouldTeleportIn (entity)
 
function private margwaShouldTeleportOut (entity)
 
function private margwaShouldWait (entity)
 
function private margwaSmashAttackStart (entity)
 
function margwaSmashAttackTerminate (entity)
 
function private margwaSpawnSetup ()
 
function private margwaSpawnStart (entity)
 
function private margwaSwipeAttackAction (entity, asmStateName)
 
function private margwaSwipeAttackActionUpdate (entity, asmStateName)
 
function margwaSwipeAttackStart (entity)
 
function private margwaSwipeattackTerminate (entity)
 
function private margwaTargetService (entity)
 
function private margwaTeleportInStart (entity)
 
function margwaTeleportInTerminate (entity)
 
function private margwaTeleportOutStart (entity)
 
function private margwaTeleportOutTerminate (entity)
 
function margwaTell ()
 
function private margwaTraverseActionStart (entity)
 
function private margwaUpdateMoveSpeed ()
 
function private margwaWait ()
 
function private mocompMargwaTeleportTraversalInit (entity, mocompAnim, mocompAnimBlendOutTime, mocompAnimFlag, mocompDuration)
 
function private mocompMargwaTeleportTraversalTerminate (entity, mocompAnim, mocompAnimBlendOutTime, mocompAnimFlag, mocompDuration)
 
function private mocompMargwaTeleportTraversalUpdate (entity, mocompAnim, mocompAnimBlendOutTime, mocompAnimFlag, mocompDuration)
 
function private shieldFacing (vDir, limit, front=true)
 
function shouldUpdateJaw ()
 
function show_hit_marker ()
 

Function Documentation

◆ AddDirectHitWeapon()

function AddDirectHitWeapon ( weaponName  )

Definition at line 87 of file margwa.gsc.

◆ ArchetypeMargwaBlackboardInit()

◆ ArchetypeMargwaOnAnimscriptedCallback()

function private ArchetypeMargwaOnAnimscriptedCallback ( entity  )

Definition at line 178 of file margwa.gsc.

References ArchetypeMargwaBlackboardInit().

Referenced by ArchetypeMargwaBlackboardInit().

◆ BB_GetShouldTurn()

function private BB_GetShouldTurn ( )

Definition at line 187 of file margwa.gsc.

References SHOULD_NOT_TURN, and SHOULD_TURN.

Referenced by ArchetypeMargwaBlackboardInit().

◆ init()

◆ InitDirectHitWeapons()

function private InitDirectHitWeapons ( )

Definition at line 71 of file margwa.gsc.

Referenced by init().

◆ InitMargwaBehaviorsAndASM()

◆ inSmashAttackRange()

function private inSmashAttackRange ( enemy  )

Definition at line 1570 of file margwa.gsc.

References MARGWA_SMASH_ATTACK_HEIGHT, and MARGWA_SMASH_ATTACK_START.

Referenced by margwaShouldSmashAttack().

◆ isDirectHitWeapon()

function private isDirectHitWeapon ( weapon  )

Definition at line 1268 of file margwa.gsc.

Referenced by margwaDamage().

◆ margwaCanDamageAnyHead()

function margwaCanDamageAnyHead ( )

Definition at line 1233 of file margwa.gsc.

References IS_TRUE.

Referenced by is_enemy_valid().

◆ margwaCanDamageHead()

function margwaCanDamageHead ( )

Definition at line 1246 of file margwa.gsc.

References IS_TRUE.

Referenced by margwaDamage().

◆ margwaCloseAllHeads()

function private margwaCloseAllHeads ( closeTime  )

◆ margwaCloseHead()

function private margwaCloseHead ( headInfo  )

Definition at line 1161 of file margwa.gsc.

References set().

Referenced by margwaCloseAllHeads(), margwaHeadSmash(), and margwaKillHead().

◆ margwaDamage()

function margwaDamage ( inflictor  ,
attacker  ,
damage  ,
dFlags  ,
mod  ,
weapon  ,
point  ,
dir  ,
hitLoc  ,
offsetTime  ,
boneIndex  ,
modelIndex   
)

◆ margwaDeath()

function private margwaDeath ( )

Definition at line 899 of file margwa.gsc.

Referenced by margwaSpawnSetup().

◆ margwaDeathAction()

function private margwaDeathAction ( entity  )

Definition at line 565 of file margwa.gsc.

◆ margwaDestroyHead()

function private margwaDestroyHead ( modelHit  )

Definition at line 1470 of file margwa.gsc.

◆ margwaDisableStun()

function private margwaDisableStun ( )

Definition at line 924 of file margwa.gsc.

Referenced by margwaSpawnSetup().

◆ margwaEnableStun()

function margwaEnableStun ( )

Definition at line 919 of file margwa.gsc.

◆ margwaForceSprint()

function margwaForceSprint ( )

◆ margwaHeadCanOpen()

function private margwaHeadCanOpen ( )

Definition at line 1036 of file margwa.gsc.

Referenced by margwaHeadUpdate().

◆ margwaHeadDamageDelay()

function private margwaHeadDamageDelay ( headInfo  ,
canDamage   
)

Definition at line 1121 of file margwa.gsc.

References MARGWA_MOUTH_BLEND_TIME.

Referenced by margwaHeadUpdate().

◆ margwaHeadHit()

function private margwaHeadHit ( entity  ,
partName   
)

◆ margwaHeadSmash()

function private margwaHeadSmash ( )

Definition at line 1130 of file margwa.gsc.

References margwaCloseHead(), open(), and set().

Referenced by margwaSmashAttackStart().

◆ margwaHeadUpdate()

◆ margwaIdleStart()

function private margwaIdleStart ( entity  )

Definition at line 542 of file margwa.gsc.

References MARGWA_JAW_CLIENTFIELD, MARGWA_JAW_IDLE, set(), and shouldUpdateJaw().

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaInitHead()

◆ margwaKillHead()

function margwaKillHead ( modelHit  ,
attacker   
)

◆ margwaMoveStart()

function private margwaMoveStart ( entity  )

◆ margwaNotetrackBodyfall()

function private margwaNotetrackBodyfall ( entity  )

Definition at line 263 of file margwa.gsc.

References ARCHETYPE_MARGWA.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaNotetrackPainMelee()

function private margwaNotetrackPainMelee ( entity  )

Definition at line 276 of file margwa.gsc.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaNotetrackSmashAttack()

◆ margwaPainStart()

◆ margwaPainTerminate()

function private margwaPainTerminate ( entity  )

Definition at line 703 of file margwa.gsc.

References MARGWA_PAIN_CLOSE_TIME, and margwaCloseAllHeads().

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaReactIDGunStart()

◆ margwaReactIDGunTerminate()

function margwaReactIDGunTerminate ( entity  )

◆ margwaReactStunAction()

function private margwaReactStunAction ( entity  ,
asmStateName   
)

◆ margwaReactStunStart()

function private margwaReactStunStart ( entity  )

◆ margwaReactStunTerminate()

function margwaReactStunTerminate ( entity  )

Definition at line 730 of file margwa.gsc.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaReactSwordStart()

function private margwaReactSwordStart ( entity  )

Definition at line 773 of file margwa.gsc.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaReactSwordTerminate()

function private margwaReactSwordTerminate ( entity  )

Definition at line 784 of file margwa.gsc.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaResetHeadTime()

function private margwaResetHeadTime ( min  ,
max   
)

Definition at line 1030 of file margwa.gsc.

Referenced by margwaHeadUpdate().

◆ margwaSetGoal()

function margwaSetGoal ( origin  ,
radius  ,
boundaryDist   
)

Definition at line 1489 of file margwa.gsc.

References MARGWA_NAVMESH_BOUNDARY_DIST, and MARGWA_NAVMESH_RADIUS.

◆ margwaSetHeadHealth()

function margwaSetHeadHealth ( health  )

Definition at line 1020 of file margwa.gsc.

◆ margwaShouldFreeze()

function private margwaShouldFreeze ( entity  )

Definition at line 431 of file margwa.gsc.

References IS_TRUE.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaShouldReactIDGun()

function private margwaShouldReactIDGun ( entity  )

Definition at line 401 of file margwa.gsc.

References IS_TRUE.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaShouldReactStun()

function private margwaShouldReactStun ( entity  )

Definition at line 391 of file margwa.gsc.

References IS_TRUE.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaShouldReactSword()

function private margwaShouldReactSword ( entity  )

Definition at line 411 of file margwa.gsc.

References IS_TRUE.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaShouldReset()

function private margwaShouldReset ( entity  )

Definition at line 471 of file margwa.gsc.

References IS_TRUE.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaShouldShowPain()

◆ margwaShouldSmashAttack()

function margwaShouldSmashAttack ( entity  )

Definition at line 323 of file margwa.gsc.

References inSmashAttackRange(), and MARGWA_MELEE_YAW.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaShouldSpawn()

function private margwaShouldSpawn ( entity  )

Definition at line 421 of file margwa.gsc.

References IS_TRUE.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaShouldSwipeAttack()

function margwaShouldSwipeAttack ( entity  )

Definition at line 344 of file margwa.gsc.

References MARGWA_MELEE_YAW, and MARGWA_SWIPE_DIST_SQ.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaShouldTeleportIn()

function private margwaShouldTeleportIn ( entity  )

Definition at line 441 of file margwa.gsc.

References IS_TRUE.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaShouldTeleportOut()

function private margwaShouldTeleportOut ( entity  )

Definition at line 451 of file margwa.gsc.

References IS_TRUE.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaShouldWait()

function private margwaShouldWait ( entity  )

Definition at line 461 of file margwa.gsc.

References IS_TRUE.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaSmashAttackStart()

function private margwaSmashAttackStart ( entity  )

◆ margwaSmashAttackTerminate()

function margwaSmashAttackTerminate ( entity  )

Definition at line 804 of file margwa.gsc.

References margwaCloseAllHeads().

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaSpawnSetup()

◆ margwaSpawnStart()

function private margwaSpawnStart ( entity  )

Definition at line 789 of file margwa.gsc.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaSwipeAttackAction()

function private margwaSwipeAttackAction ( entity  ,
asmStateName   
)

Definition at line 516 of file margwa.gsc.

References ASM_ALIAS_ATTRIBUTE, BHTN_RUNNING, RequestState(), and SearchAnimationMap().

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaSwipeAttackActionUpdate()

function private margwaSwipeAttackActionUpdate ( entity  ,
asmStateName   
)

Definition at line 532 of file margwa.gsc.

References BHTN_RUNNING, and BHTN_SUCCESS.

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaSwipeAttackStart()

function margwaSwipeAttackStart ( entity  )

◆ margwaSwipeattackTerminate()

function private margwaSwipeattackTerminate ( entity  )

Definition at line 817 of file margwa.gsc.

References margwaCloseAllHeads().

◆ margwaTargetService()

function private margwaTargetService ( entity  )

◆ margwaTeleportInStart()

◆ margwaTeleportInTerminate()

function margwaTeleportInTerminate ( entity  )

Definition at line 624 of file margwa.gsc.

References MARGWA_FX_TRAVEL_CLIENTFIELD, MARGWA_TELEPORT_OFF, and set().

Referenced by InitMargwaBehaviorsAndASM().

◆ margwaTeleportOutStart()

◆ margwaTeleportOutTerminate()

function private margwaTeleportOutTerminate ( entity  )

◆ margwaTell()

function margwaTell ( )

Definition at line 1540 of file margwa.gsc.

References MARGWA_FX_TRAVEL_TELL_CLIENTFIELD, MARGWA_TELEPORT_ON, set(), and wait_network_frame().

Referenced by margwaWait().

◆ margwaTraverseActionStart()

◆ margwaUpdateMoveSpeed()

function private margwaUpdateMoveSpeed ( )

◆ margwaWait()

◆ mocompMargwaTeleportTraversalInit()

function private mocompMargwaTeleportTraversalInit ( entity  ,
mocompAnim  ,
mocompAnimBlendOutTime  ,
mocompAnimFlag  ,
mocompDuration   
)

◆ mocompMargwaTeleportTraversalTerminate()

function private mocompMargwaTeleportTraversalTerminate ( entity  ,
mocompAnim  ,
mocompAnimBlendOutTime  ,
mocompAnimFlag  ,
mocompDuration   
)

Definition at line 850 of file margwa.gsc.

References margwaTeleportOutTerminate().

Referenced by InitMargwaBehaviorsAndASM().

◆ mocompMargwaTeleportTraversalUpdate()

function private mocompMargwaTeleportTraversalUpdate ( entity  ,
mocompAnim  ,
mocompAnimBlendOutTime  ,
mocompAnimFlag  ,
mocompDuration   
)

Definition at line 846 of file margwa.gsc.

Referenced by InitMargwaBehaviorsAndASM().

◆ shieldFacing()

function private shieldFacing ( vDir  ,
limit  ,
front  = true 
)

Definition at line 1551 of file margwa.gsc.

References limit().

Referenced by margwaNotetrackSmashAttack().

◆ shouldUpdateJaw()

◆ show_hit_marker()

function show_hit_marker ( )

Definition at line 1257 of file margwa.gsc.

Referenced by apothiconDamageCallback(), and margwaDamage().