|
Battle Talent
V11
|
Inherits CrossLink.CharacterControllerBase.
Classes | |
| class | ConditionalStuckAction |
| class | VRSDKSetupInfo |
Public Member Functions | |
| Transform | GetCameraRig () |
| Transform | GetHeadSet () |
| Transform | GetLeftHandTrans () |
| Transform | GetRightHandTrans () |
| delegate void | OnPlayerInitFinishDelegate () |
| bool | IsDeflectSuccLately (float interval=0.3f) |
| void | TriggerDeflectEvent (FullCharacterControl fc, InteractHand hand) |
| void | TriggerParryEvent (FullCharacterControl fc, InteractHand hand) |
| PlayerUnit | GetPlayerUnit () |
| void | ResetPlayerSoul () |
| void | ReActiveCameraRig () |
| void | SetMROfflineBody () |
| void | MRHideBody () |
| void | MRShowBody () |
| void | MRSetBodyShadow (bool _b) |
| void | UpdateUnlockAbilities () |
| void | InitModifiers () |
| void | OnceAfterStateInit (System.Action cb) |
| void | SetHudStateActive (bool a) |
| void | ChangeVoice () |
| void | OnAddExp (string ge, int exp, bool lv) |
| void | IncreaseHeight () |
| void | DecreaseHeight () |
| void | SetHeadsetHeight (float headsetHeight) |
| float | GetPlayerHeight () |
| float | RawGetHeadsetHeight () |
| float | ReadHeadsetHeight () |
| bool | IsHeightRecordExist () |
| void | AdjustCapsuleAndModelBasedOnHeight () |
| float | GetHeadSetHeight () |
| void | UpdateTeleport () |
| void | SetTransition (bool t) |
| void | MarkReadyTransport () |
| Transform | GetHeadset () |
| override void | SetPushback (Vector3 vec, bool p=false) |
| override bool | IsGround () |
| override void | RotateWithVRSpace (float rot) |
| this is used for rotate the whole body with vr space if this obj do not have vr controller attached to, then it's the same as Rotate More... | |
| Quaternion | CalcRotDiff (Vector3 targetDir) |
| void | RotateToDir (Vector3 dir) |
| void | RotationTarget (Quaternion rot) |
| void | LookAt (Vector3 dir, float sec=0.2f) |
| void | StopLookAt () |
| void | StartAerialStay (InteractHand hand, FullCharacterControl fc=null, float needSec=AirStaySec) |
| void | StartAerialStayByOthers (InteractHand hand, FullCharacterControl fc=null, float needSec=AirStaySec) |
| void | StopAerialStay () |
| void | RefreshOtherAerial () |
| bool | IsAerialState () |
| void | EnableAerialStay (bool e) |
| bool | IsGrabbingHook () |
| void | EnterGrabbingHookMode (InteractHook e, bool entered) |
| void | BreakGrabbingHook () |
| bool | IsSideWalking () |
| void | StartSideWalk (Vector3 startPoint, Vector3 edgePoint, Vector3 wallDir) |
| void | BreakSideWalk () |
| void | StartSmallStep (Vector3 dir) |
| void | StopSmallStep () |
| StabObject | GetStuckWeapon () |
| bool | HasStuckGrab () |
| bool | HasStuckWeapon () |
| bool | IsStuckingWithGrabOrStab () |
| void | BreakAllStuckWeapons () |
| void | Dash (Vector3 dir) |
| void | DoDash (Vector3 dir, bool ignoreCD=false, bool ignoreRecord=false) |
| bool | IsDashing () |
| bool | IsDashAtk () |
| void | RefreshDash () |
| void | StopDash () |
| void | DashJump (bool up=true) |
| void | SetJumpMlpOnce (float mlp) |
| void | MarkJumpSaver () |
| void | UpdateFall (bool prevG, bool curG) |
| override void | Jump (Vector3 dir) |
| override void | JumpEnd () |
| bool | IsSlowMoing () |
| void | SlowMo (float len=2f, float delay=0.2f, System.Action onFinish=null) |
| void | ClearTimeScale () |
| void | SuperPower () |
| float | SuperPowerProgress () |
| void | OnChargeAttack (InteractHand hand) |
| bool | IsDoingStuckAction () |
| for checking if there's an action that stucking player More... | |
| bool | IsDoingStuckAction (System.Action removeAction) |
| void | StartStuckAction (System.Action removeAction, bool allowJump=true) |
| stuck action is an action that stucks player's position such as dash, grabbinghook, sliding wall More... | |
| void | StopStuckAction (System.Action removeAction) |
| void | RegisterConditionalStuckAction (ConditionalStuckAction cond) |
| Registering Conditional Stuck Action means some action may or may not stucking player, such as stabbing weapon into the wood More... | |
| void | UnRegisterConditionalStuckAction (ConditionalStuckAction cond) |
| void | BreakAllStuckActions () |
| bool | AllowJumpAgainIfStucking () |
| bool | HasEnoughMana (float manaRequire) |
| bool | CostMana (InteractTrigger source, float manaRequire) |
| void | OnGrab (InteractHand h, AttachObj att) |
| void | OnFingerGrab (InteractHand h) |
| void | OnFingerTouch (InteractHand h, float force) |
| void | Respawn () |
| void | Transport (Transform transportTarget) |
| void | Transport (Vector3 pos, Vector3 dir, bool firstFrame=false, bool playTeleportEffect=false) |
| Transport player to target position and direction More... | |
| override void | ResetMovement () |
| void | Transport (Vector3 pos, bool firstFrame=false, bool playTeleportEffect=false) |
| void | StopShaking () |
| void | ShakeCharacter (float sec, float intensity, bool fromGround=true) |
| bool | IsJustAddUpForce () |
| void | AddUpForce (float force=8, float forceCD=0.5f) |
| void | ClearYSpeed () |
| void | ClearDownSpeed () |
| bool | NoEnemyAround () |
| float | GetHeightScale () |
| bool | NeedToCheckHandConnection () |
| void | StopCheckHandConnection () |
| void | UpdateVRIKHandDir () |
| bool | IsVRDesktop () |
| VRSDKSetupInfo | GetSetupInfo (string name) |
| bool | IsSimulator () |
| bool | IsOculusSDK () |
| float | GetCeilDistance () |
| Vector3 | GetCeilPos () |
| void | CheckCeil () |
| bool | IsKicking () |
| void | DisableKick (bool disK) |
| void | ShouldKick () |
| void | CancelKicking () |
| for close the kicking action More... | |
| bool | IsFootGliding () |
| void | SetFootGliding (bool footgliding) |
| float | GetArmLength () |
| void | SetArmLength (float al) |
| void | PlayAnimStepSound () |
| void | PlayAnimJumpStartSound () |
| void | PlayAnimJumpEndSound () |
| void | FreezeEffect (bool f) |
| void | ChangeToColourMaterial () |
| void | ChangeCloakColor (int idx=0) |
| void | ChangeHelmetEmission (Color color) |
Public Member Functions inherited from CrossLink.CharacterControllerBase | |
| void | Reset () |
| void | SetCapsuleIgnore (Collider target, bool ignore) |
| void | SetCapsuleAct (bool e) |
| void | IgnorePlayerCollision (bool ig) |
| Vector3 | GetCentrePos () |
| void | SetBodyHeight (float height) |
| float | GetBodyHeight () |
| float | GetDefaultBodyWidth () |
| void | SetSecondaryColExtend (bool e) |
| void | SetMoveSpeedState (float ms) |
| float | GetMoveSpeedState () |
| void | SetMoveSpeed (float ms) |
| float | GetMoveSpeed () |
| void | SetRotateSpeed (float rs) |
| float | GetRotateSpeed () |
| void | ScaleMass (bool s) |
| bool | IsMassScale () |
| bool | IsStandStill () |
| void | StandStill (bool s) |
| Vector3 | GetTargetDir () |
| Vector3 | GetTargetVec () |
| bool | IsMoving () |
| bool | IsMoveComandDisabled () |
| void | SetDisableMoveCommand (bool s) |
| void | ToggleKinematic (bool t) |
| bool | IsGhostMove () |
| void | ToggleGhostMove (bool g) |
| void | SetDisableMoveForAWhile (bool dm, float sec) |
| void | PanMove (Vector3 moveDir) |
| void | PanPush (Vector3 offset) |
| void | PhysicsTrack (Vector3 pos) |
| void | PanPushForAWhile (Vector3 dir, float sec) |
| float | GetRotateDelta () |
| void | Rotate (float rotDelta) |
| void | RotateTo (Vector3 dir, float rotateSpeed, float dt) |
| void | RotateTo (Vector3 target) |
| bool | IsRootMotion () |
| void | SetRootMotion (bool rm) |
| bool | MovePosition (Vector3 dest, bool forceAssist=false) |
| bool | IsMovementEnable () |
| void | SetMovementEnable (bool e) |
| void | SetMovementForAWhile (bool e, float sec=1) |
| void | LerpYSpeed () |
| void | ResetMoveComand (float dt) |
| void | UpdatePos (float dt) |
| void | UpdateStandStill (float dt) |
| float | GetOriginalDragPower () |
| void | InitDrag () |
| void | SetDragPower (float p) |
| void | SetDragForAWhile (float drag=0, float sec=0.2f) |
| void | SetEnabledJumpCount (int jc) |
| bool | GetJumpEnabled () |
| void | SetJumpEnabled (bool e) |
| virtual bool | CheckReadyToJump () |
| int | JumpCountLeft () |
| void | CountAsJump (int jc=1) |
| bool | IsStartJump () |
| bool | IsJumping () |
| is just start to jump or not in the ground More... | |
| bool | GetPushbackEnabled () |
| void | SetPushbackEnabled (bool e) |
| bool | IsPushbacking () |
| void | ResetPushTime () |
| void | AddPushback (Vector3 srcPos, bool force=false) |
| void | AddPushback (Vector3 srcPos, float hitbackDis, bool force=false) |
| used for hitback from attack force More... | |
| void | AddPushbackByForce (Vector3 forceDir, bool force=false) |
| used for drag and grab More... | |
| void | AddPushbackByDir (Vector3 pushDir, bool force=false) |
| void | AddForce (Vector3 force, ForceMode fm=ForceMode.VelocityChange) |
| void | ClearPushback () |
| Rigidbody | GetGroundRB () |
| bool | IsJustGround (float sec=0.5f) |
| float | GetGroundedTime () |
| void | RawSetIsGround (bool i) |
| bool | IsLatestHitGround () |
| Vector3 | GetGroundPos () |
| Vector3 | GetGroundNormal () |
| string | GetGroundCollisionMaterial () |
| void | PlayFootstepSound (string footMat, float force) |
| void | PlayJumpStartSound (string footMat, float force) |
| void | PlayJumpEndSound (string footMat, float force) |
| void | SetLatestHitGround (bool hit) |
| bool | IsMidAir (float diff=0.5f, Transform checkTrans=null) |
| void | CheckGround (Transform checkTrans=null) |
| bool | CheckGroundFall () |
| Transform | CheckCharacter () |
| bool | ClampGroundEnabled () |
| void | EnableClampGround (bool c) |
| void | PrepareClampGround () |
| void | DoClampGround () |
| bool | IsGhostMode () |
| void | BecomeAFollowShell (bool b) |
Static Public Member Functions | |
| static float | GetTargetHeight (float playerHeight) |
| static float | CalcTallAdd (float hetsetHeight) |
| static float | GetPlayerHeight (float headsetHeight) |
Static Public Member Functions inherited from CrossLink.CharacterControllerBase | |
| static CharacterControllerBase | GetControllerByCol (Collider c) |
Public Attributes | |
| bool | IsLocalPlayer = true |
| bool | IsInitFin = false |
| Transform | networkCameraRig |
| Transform | networkHeadset |
| Transform | networkLeftHand |
| Transform | networkRightHand |
| Network.NetworkPlayer | networkPlayer |
| Transform | clientLeftHand |
| Transform | clientRightHand |
| Rigidbody | simulateRB |
| ShadowCaster | shadowCaster |
| AIPlayer | aiProxy |
| MagicaCloth.MagicaBoneCloth | cloth |
| InputMovement | move |
| List< GameObject > | mrBodyHideMeshs = new List<GameObject>() |
| List< SkinnedMeshRenderer > | mrPassthroughArmMeshs = new List<SkinnedMeshRenderer>() |
| List< SkinnedMeshRenderer > | mrPassthroughBodyMeshs = new List<SkinnedMeshRenderer>() |
| Material | passthroughMat |
| Material | originArmMat |
| Material | originBodyMat |
| PlayerCombatAttr | attr |
| GazeObj | gaze |
| HUDState | hudState |
| bool | isChargedAtkEnabled = false |
| AnimationCurve | heightMap |
| float | tallAdd = 0 |
| Transform | headSphere |
| Collider | headSphereCol |
| float | sidewalkSpeed = 4 |
| AnimationCurve | smallStepCurve |
| float | dashDistance = 3 |
| float | dashTime = 0.2f |
| float | maxDashVel = 12f |
| AnimationCurve | dashCurve |
| float | dashInterval = 1f |
| float | dashMinSpeed = 1f |
| float | superModeCoolDown = 30 |
| float | cameraForwardOffset = 0.0f |
| float | characterHeight = 2.0f |
| HandToggle | lefthandToggle |
| HandToggle | righthandToggle |
| AICommandToggle[] | aiToggles |
| InteractHand[] | hands |
| SlotTrigger[] | bodySlots |
| Animator | anim |
| VRIK | ik |
| VRIKCalibrator.Settings | settings |
| Transform | headTracker |
| Transform | bodyTracker |
| Transform | leftHandTracker |
| Transform | rightHandTracker |
| Transform | leftFootTracker |
| Transform | rightFootTracker |
| VRIKCalibrator.CalibrationData | data = new VRIKCalibrator.CalibrationData() |
| VRSDKSetupInfo[] | vrInfos |
| float | pelvisStartMoveHeadHeight = 1.4f |
| float | pelvisOffset = -0.776f |
| float | pelvisEndYPos = 0.2f |
| float | pelvisStartZPos = -0.207f |
| float | pelvisLowestZPos = -0.97f |
| float | feetStartMoveHeadHeight = 0.6f |
| float | feetStarterZPos = 0.17f |
| float | feetLowestZPos = -1.3f |
| float | lookdownMlp = 0.5f |
| AnimationCurve | bodyPoseZCurve |
| AnimationCurve | bodyPoseFeetZCurve |
| float | footHeight = 0.2f |
| float | footStepOffset = 0.2f |
| float | footStepReachOutOffset = -0.35f |
| float | footStepTime = 0.2f |
| float | footStepTimeMin = 0.2f |
| Vector3[] | feetInitPos |
| TransformTransfer | handPoseTransfer |
| float | animMoveSpeed = 0.25f |
| AnimationCurve | armLenMlpCurve |
| Transform[] | handBones |
| Transform[] | sholderBones |
| InteractBase[] | feetIB |
| SoundEffectInfo | kickSound |
| SoundEffectInfo | footGlidingSound |
| RotationLimit[] | rotationLimits |
| MultiTwistRelaxer[] | twistRelaxers |
| Transform[] | armLens |
| Transform[] | indexHudFingers |
| AnimationCurve | hitHapticCurve |
| AnimationCurve | grabHapticCurve |
| AnimationCurve | skillOpenHapticCurve |
| AnimationCurve | skillChargeHapticCurve |
| AnimationCurve | weaponFlyBackCurve |
| AnimationCurve | weaponThrowForceCurve |
| string | lvUpEffect |
| string | dashEffect = "DashSparks" |
| string | skillOpenSound |
| string | skillCloseSound |
| string | skillChargeLoopSound |
| string | skillChargeFinishSound |
| SoundEffectInfo | skillChargeFinish |
| SoundEffectInfo | footSound |
| SoundEffectInfo | dashSound |
| SoundEffectInfo | jumpSound |
| SoundEffectInfo | grabSound |
| SoundEffectInfo | slotSound |
| SoundEffectInfo | hurtSound |
| SoundEffectInfo | summerWeaponSound |
| SoundEffectInfo | slowmoBeginSound |
| SoundEffectInfo | slowmoEndSound |
| AudioSource | heartbeat |
| Renderer[] | meshes |
| Renderer | bodyRenderer |
| Renderer | cloakRenderer |
| Renderer | helmetRenderer |
| Renderer | cloakHeadRenderer |
| SimpleLOD | lod |
Public Attributes inherited from CrossLink.CharacterControllerBase | |
| Transform | trans |
| Rigidbody | capsuleRB |
| CapsuleCollider | capsuleCollider |
| BoxCollider | secondaryCollider |
| Collider | thirdCollider |
| Collider | fourthCollider |
| Collider[] | otherCols |
| VelocityCalculator | velEstor = new VelocityCalculator() |
| float | dragPower = 0.8f |
| float | moveSpeed = StandardMoveSpeed |
| float | rotateSpeed = 800 |
| float | pullUpMaxDis = 0.3f |
| bool | enableAssist = true |
| System.Func< Vector3, bool > | UpdatePosFunc = null |
| float | jumpForce = 8f |
| LayerMask | groundLayer |
Static Public Attributes | |
| static InteractCharacter | PlayerInstance |
| static Transform | PlayerTrans |
| static AIPlayer | AIPlayerInstance |
| static bool | HighLevelFunctionLock = false |
| static bool | CheatSlowMo = false |
| const float | TargetHeightMax = 1.95f - HeadsetOffset |
| const float | TargetHeight = 1.75f - HeadsetOffset |
| static float | BaseModelHeight = 1.85f |
| static float | TargetScaleRate = TargetHeightMax / TargetHeight |
| const float | HeadsetOffset = 0.17f |
| const float | AirStaySec = 0.35f |
| static bool | InSuperMode = false |
Static Public Attributes inherited from CrossLink.CharacterControllerBase | |
| const float | StandardMoveSpeed = 2.5f |
| static bool | IgnoreMovePositionRigidbody = false |
Properties | |
| List< Renderer > | MRAllMeshs [get] |
Events | |
| static OnPlayerInitFinishDelegate | OnPlayerInitFinish |
| System.Action< FullCharacterControl, InteractHand > | DeflectEvent |
| System.Action< FullCharacterControl, InteractHand > | ParryEvent |
| System.Action< InteractHand > | ChargeAtkBeginEvent |
| System.Action< Vector3 > | TransportBeginEvent |
| System.Action< Vector3 > | TransportEndEvent |
| System.Action< float > | StepSoundEvent |
| System.Action< float > | JumpStartSoundEvent |
| System.Action< float > | JumpEndSoundEvent |
Events inherited from CrossLink.CharacterControllerBase | |
| System.Action | JumpEvent |
| System.Action< CharacterControllerBase, bool > | GroundEvent |
Additional Inherited Members | |
Protected Member Functions inherited from CrossLink.CharacterControllerBase | |
| void | Awake () |
| void | OnDestroy () |
| void | OnEnable () |
| void | OnDisable () |
| virtual float | GetMoveSpeed (Vector3 dir) |
| virtual void | OnJump () |
| void | PhysicsJump (Vector3 dir, float force) |
| void | UpdatePushback (float dt) |
Protected Attributes inherited from CrossLink.CharacterControllerBase | |
| float | moveSpeedState = 1 |
| float | originalMass |
| Vector3 | targetDir |
| bool | moveCommand = false |
| bool | disableMoveCommand = false |
| bool | isGhostMove = false |
| Vector3 | movementDir |
| float | rotateDelta |
| bool | rotateCommand = false |
| bool | isRootMotion = false |
| float | pullUpMinDis = 0.1f |
| bool | checkPullRadius = true |
| bool | enableMovement = true |
| int | moveActId = -1 |
| float | jumpTime |
| int | enabledJumpCount = 1 |
| bool | jumpEnabled = true |
| bool | enablePushback = true |
| float | impluseTime |
| Vector3 | impluseVec |
| RaycastHit | groundHitInfo |
| bool | isLatestHitGround = true |
| bool | prevGround = true |
| bool | clampGround = false |
| Transform | clampObj |
| Vector3 | lastGroundPosition |
| Vector3 | lastGroundForward |
| Vector3 | lastLocalPosition |
| Vector3 | lastForwardLocalPosition |
| Vector3 | lastWorldPosition |
| bool | ghostMode = false |
Static Protected Attributes inherited from CrossLink.CharacterControllerBase | |
| const float | PushbackTime = 0.14f |
| void CrossLink.InteractCharacter.CancelKicking | ( | ) |
for close the kicking action
| void CrossLink.InteractCharacter.DoDash | ( | Vector3 | dir, |
| bool | ignoreCD = false, |
||
| bool | ignoreRecord = false |
||
| ) |
UNITY_EDITOR
| bool CrossLink.InteractCharacter.IsDoingStuckAction | ( | ) |
for checking if there's an action that stucking player
| void CrossLink.InteractCharacter.RegisterConditionalStuckAction | ( | ConditionalStuckAction | cond | ) |
Registering Conditional Stuck Action means some action may or may not stucking player, such as stabbing weapon into the wood
| cond | |
| remove |
|
virtual |
this is used for rotate the whole body with vr space if this obj do not have vr controller attached to, then it's the same as Rotate
| rotDelta |
Reimplemented from CrossLink.CharacterControllerBase.
| void CrossLink.InteractCharacter.ShouldKick | ( | ) |
called in input when just press down kick btn or when kicking still holding kick btn
| void CrossLink.InteractCharacter.StartStuckAction | ( | System.Action | removeAction, |
| bool | allowJump = true |
||
| ) |
stuck action is an action that stucks player's position such as dash, grabbinghook, sliding wall
| removeAction |
| void CrossLink.InteractCharacter.Transport | ( | Vector3 | pos, |
| Vector3 | dir, | ||
| bool | firstFrame = false, |
||
| bool | playTeleportEffect = false |
||
| ) |
Transport player to target position and direction
| firstFrame | means change playerUnit root position and direction or not |
| Vector3 [] CrossLink.InteractCharacter.feetInitPos |