Package zombie.characters
Class IsoGameCharacter
java.lang.Object
zombie.iso.IsoObject
zombie.iso.IsoMovingObject
zombie.characters.IsoGameCharacter
- All Implemented Interfaces:
fmod.fmod.IFMODParameterUpdater
,Serializable
,Mover
,IActionStateChanged
,ILuaGameCharacter
,ILuaGameCharacterAttachedItems
,ILuaGameCharacterClothing
,ILuaGameCharacterDamage
,ILuaGameCharacterHealth
,ILuaVariableSource
,Talker
,ChatElementOwner
,IAnimatable
,IAnimationVariableMap
,IAnimationVariableSource
,IAnimEventCallback
,IClothingItemListener
,Thumpable
- Direct Known Subclasses:
IsoDummyCameraCharacter
,IsoLivingCharacter
,IsoLuaCharacter
,IsoLuaMover
,IsoZombie
,RandomizedBuildingBase.HumanCorpse
public abstract class IsoGameCharacter
extends IsoMovingObject
implements Talker, ChatElementOwner, IAnimatable, IAnimationVariableMap, IClothingItemListener, IActionStateChanged, IAnimEventCallback, fmod.fmod.IFMODParameterUpdater, ILuaVariableSource, ILuaGameCharacter
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
class
static class
static class
class
static class
class
static class
Nested classes/interfaces inherited from class zombie.iso.IsoMovingObject
IsoMovingObject.TreeSoundManager
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.IsoObjectFactory, IsoObject.OutlineShader, IsoObject.VisionResult
-
Field Summary
Modifier and TypeFieldDescriptionfinal ActionContext
final AdvancedAnimator
boolean
final AttackVars
boolean
int
boolean
boolean
long
boolean
boolean
boolean
Deprecated.final boolean[]
float
long
final NetworkCharacter
float
float
byte
int
long
static final int
static final int
static final float
boolean
short
float
float
int
float
boolean
long
Fields inherited from class zombie.iso.IsoMovingObject
bOutline, def, last, lx, ly, lz, MAX_ZOMBIES_EATING, noDamage, nx, ny, outlineColor, treeSoundMgr, x, y, z
Fields inherited from class zombie.iso.IsoObject
AttachedAnimSprite, bAlphaForced, bmod, bNeverDoneAlpha, container, Damage, dir, doNotSync, gmod, highlightFlags, keyId, lastRendered, lastRenderedRendered, LowLightingQualityHack, MAX_WALL_SPLATS, name, NoPicking, OBF_Blink, OBF_Highlighted, OBF_HighlightRenderOnce, offsetX, offsetY, OutlineOnMouseover, overlaySprite, overlaySpriteColor, partialThumpDmg, rerouteCollide, rerouteMask, rmod, sheetRope, sheetRopeHealth, sprite, spriteName, square, sx, sy, table, tintb, tintg, tintr, wallBloodSplats
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionStateChanged
(ActionContext sender) void
void
addBlood
(float speed) void
addBlood
(BloodBodyPartType part, boolean scratched, boolean bitten, boolean allLayers) void
addDirt
(BloodBodyPartType part, Integer nbr, boolean allLayers) boolean
addHole
(BloodBodyPartType part) boolean
addHole
(BloodBodyPartType part, boolean allLayers) boolean
addHoleFromZombieAttacks
(BloodBodyPartType part, boolean scratch) void
addKnownMediaLine
(String guid) void
addLineChatElement
(String line) void
addLineChatElement
(String line, float r, float g, float b) void
addLineChatElement
(String line, float r, float g, float b, UIFont font, float baseRange, String customTag) void
addLineChatElement
(String line, float r, float g, float b, UIFont font, float baseRange, String customTag, boolean bbcode, boolean img, boolean icons, boolean colors, boolean fonts, boolean equalizeHeights) void
addVisualDamage
(String itemType) void
addWorldSoundUnlessInvisible
(int radius, int volume, boolean bStressHumans) void
Anger
(int amount) void
ApplyInBedOffset
(boolean apply) void
applyTraits
(ArrayList<String> luaTraits) void
attackFromWindowsLunge
(IsoZombie zombie) void
boolean
void
void
BetaAntiDepress
(float delta) void
BetaBlockers
(float delta) void
burnCorpse
(IsoDeadBody corpse) void
calcHitDir
(IsoGameCharacter wielder, HandWeapon weapon, Vector2 out) void
calcHitDir
(Vector2 out) float
void
Callout()
void
Callout
(boolean doAnim) boolean
boolean
boolean
boolean
boolean
CanSee
(IsoMovingObject obj) boolean
void
changeState
(State state) float
void
void
void
void
void
clearVariable
(String key) void
ClearVariable
(String key) void
void
void
void
void
void
void
climbThroughWindow
(IsoThumpable w, Integer startingFrame) void
void
climbThroughWindow
(IsoWindow w, Integer startingFrame) void
void
void
clothingItemChanged
(String itemGuid) clothingItemChanged Called when a ClothingItem file has changed on disk, causing the OutfitManager to broadcast this event.int
boolean
containsVariable
(String name) void
dbgGetAnimTrack
(int layerIdx, int trackIdx) dbgGetAnimTrackName
(int layerIdx, int trackIdx) float
dbgGetAnimTrackTime
(int layerIdx, int trackIdx) float
dbgGetAnimTrackWeight
(int layerIdx, int trackIdx) void
die()
void
DirectionFromVector
(Vector2 vecA) void
DoDeath
(HandWeapon weapon, IsoGameCharacter wielder) void
DoDeath
(HandWeapon weapon, IsoGameCharacter wielder, boolean bGory) void
DoFloorSplat
(IsoGridSquare sq, String id, boolean bFlip, float offZ, float alpha) void
DoFootstepSound
(float volume) void
DoFootstepSound
(String type) void
doHitByVehicle
(BaseVehicle baseVehicle, BaseVehicle.HitVars hitVars) void
boolean
DoSwingCollisionBoneCheck
(IsoGameCharacter zombie, int bone, float tempoLengthTest) void
drawDebugTextBelow
(String text) void
drawDirectionLine
(Vector2 dir, float length, float r, float g, float b) void
void
dressInClothingItem
(String itemGUID) void
dressInNamedOutfit
(String outfitName) void
dressInPersistentOutfit
(String outfitName) void
dressInPersistentOutfitID
(int outfitID) void
Picks a random outfit from the OutfitManagervoid
Dressup
(SurvivorDesc desc) void
void
boolean
Eat
(InventoryItem info) boolean
Eat
(InventoryItem info, float percentage) void
endPlaybackGameVariables
(AnimationVariableSource playbackVars) void
enterVehicle
(BaseVehicle v, int seat, org.joml.Vector3f offset) void
exert
(float f) void
faceLocation
(float x, float y) void
faceLocationF
(float x, float y) void
facePosition
(int x, int y) void
faceThisObject
(IsoObject object) void
faceThisObjectAlt
(IsoObject object) void
void
void
float
int
getAge()
int
getAlreadyReadPages
(String fullType) float
float
float
float
getAnimVector
(Vector2 out) getAttachedItem
(String location) float
float
getBed()
float
float
float
float
float
float
float
float
getBodyPartClothingDefense
(Integer part, boolean bite, boolean bullet) getBrain()
float
float
float
getDeferredMovement
(Vector2 out_result) float
float
float
int
float
The forward direction angle, in degrees.float
getDotWithForwardDirection
(float targetX, float targetY) float
getDotWithForwardDirection
(Vector3 bonePos) float
The character's excess twist, in degrees.float
float
double
float
int
float
Returns all Game variables.float
getGlobalMovementMod
(boolean bDoNoises) float
float
float
int
float
double
double
float
boolean
static ColorInfo
getInf()
float
boolean
getIsNPC()
void
getItemVisuals
(ItemVisuals itemVisuals) long
float
int
int
getLastKnownLocationOf
(String character) int
int
float
int
static int[]
int
getLevelUpLevels
(int level) float
float
float
getLlx()
float
getLly()
float
getLlz()
float
getLookVector
(Vector2 vector2) getLowDangerInVicinity
(int attempts, int range) float
getLrx()
float
getLry()
int
int
float
The maximum twist angle, in degrees.int
int
int
float
float
getModel()
float
float
float
int
float
int
Returns the specified variable slot.float
float
float
getPath2()
int
int
int
int
int
int
int
getPerkInfo
(PerkFactory.Perk perk) int
getPerkLevel
(PerkFactory.Perk perks) Return the current lvl of a perk (skill)int
int
int
float
float
float
float
int
float
float
The character's current shoulder-twist angle, in degrees.float
float
float
float
float
float
float
float
float
float
getStateMachineParams
(State state) getStats()
int
int
static HashMap<Integer,
SurvivorDesc> float
The desired twist, unclamped, in degrees.float
static Vector2
getTempo()
double
int
float
float
int
float
float
float
float
getTwist()
The character's current twist angle, in degrees.getUID()
int
getVariable
(String key) Returns the specified variable slot.getVariable
(AnimationVariableHandle handle) Returns the specified variable slot.GetVariable
(String key) boolean
getVariableBoolean
(String name) Returns the specified variable, as a boolean.boolean
getVariableBoolean
(String key, boolean defaultVal) Returns the specified variable, as a boolean.float
getVariableFloat
(String name, float defaultVal) Returns the specified variable, as a float.getVariableString
(String name) Returns the specified variable.getWaterSource
(ArrayList<InventoryItem> items) int
float
float
getWornItem
(String location) getXp()
int
getXpForLevel
(int level) int
boolean
boolean
boolean
hasEquipped
(String itemType) boolean
hasEquippedTag
(String tag) boolean
boolean
boolean
boolean
boolean
hasPath()
boolean
boolean
boolean
helmetFall
(boolean hitHead) boolean
helmetFall
(boolean hitHead, String forcedItem) float
Hit
(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta) float
Hit
(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta, boolean bRemote) float
Hit
(BaseVehicle vehicle, float speed, boolean isHitFromBehind, float hitDirX, float hitDirY) void
hitConsequences
(HandWeapon weapon, IsoGameCharacter wielder, boolean bIgnoreDamage, float damage, boolean bRemote) void
initAttachedItems
(String groupName) void
InitSpriteParts
(SurvivorDesc desc) void
void
initWornItems
(String bodyLocationGroupName) boolean
boolean
boolean
isAiming()
boolean
isAlive()
boolean
boolean
boolean
boolean
isAsleep()
boolean
isAttachedItem
(InventoryItem item) boolean
boolean
boolean
IsAttackRange
(float x, float y, float z) boolean
IsAttackRange
(HandWeapon we, IsoMovingObject obj, Vector3 bonePos, boolean extraRange) This use some prediction on the zombie, if he's lunging toward the player attacking it we gonna add more range to our weapon, to avoid playing the "miss" animationboolean
boolean
boolean
boolean
boolean
isBehind
(IsoGameCharacter chr) boolean
boolean
boolean
isbOnBed()
boolean
boolean
boolean
isBumped()
boolean
boolean
boolean
boolean
boolean
boolean
isClimbingThroughWindow
(IsoWindow window) boolean
isClosingWindow
(IsoWindow window) boolean
boolean
isCurrentState
(State state) boolean
isDead()
boolean
boolean
boolean
boolean
boolean
isEquipped
(InventoryItem item) boolean
boolean
isFacingLocation
(float x, float y, float dot) boolean
isFacingObject
(IsoObject object, float dot) boolean
boolean
boolean
isFemale()
boolean
boolean
isGodMod()
boolean
isHandItem
(InventoryItem item) boolean
boolean
isHeavyItem
(InventoryItem item) boolean
boolean
boolean
Deprecated.boolean
boolean
boolean
boolean
isInTrees2
(boolean ignoreBush) boolean
boolean
boolean
boolean
boolean
boolean
isKnownMediaLine
(String guid) boolean
isKnownPoison
(InventoryItem item) boolean
boolean
boolean
isLocal()
boolean
isMaskClicked
(int x, int y, boolean flip) boolean
boolean
boolean
isMoving()
boolean
boolean
isNPC()
boolean
boolean
isOnFire()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isPrimaryEquipped
(String item) boolean
boolean
isProne()
boolean
boolean
boolean
isReanim()
boolean
isRecipeKnown
(String name) boolean
isRecipeKnown
(Recipe recipe) boolean
boolean
Is this character currently culled from the visible scene graph.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isVariable
(String name, String val) Compares (ignoring case) the value of the specified variable.boolean
isVehicleCollisionActive
(BaseVehicle testVehicle) boolean
boolean
isZombie()
boolean
boolean
isZombieAttacking
(IsoMovingObject other) void
Kill
(IsoGameCharacter killer) boolean
learnRecipe
(String name) void
level0
(PerkFactory.Perk perk) void
LevelPerk
(PerkFactory.Perk perk) Level up a perk (max lvl 5)void
LevelPerk
(PerkFactory.Perk perk, boolean removePick) Level up a perk (max lvl 5)void
load
(ByteBuffer input, int WorldVersion, boolean IS_DEBUG_SAVE) void
loadChange
(String change, ByteBuffer bb) void
LoseLevel
(PerkFactory.Perk perk) void
MoveForward
(float dist, float x, float y, float soundDelta) boolean
boolean
void
NPCSetAiming
(boolean isAiming) void
NPCSetAttack
(boolean newvalue) void
NPCSetJustMoved
(boolean newvalue) void
NPCSetMelee
(boolean newvalue) void
NPCSetRunning
(boolean newvalue) void
OnAnimEvent
(AnimLayer sender, AnimEvent event) void
onCullStateChanged
(ModelManager modelManager, boolean isCulled) Callback from ModelManager.Add/Remove functions.void
OnDeath()
boolean
onMouseLeftClick
(int x, int y) void
void
void
PainMeds
(float delta) void
pathToCharacter
(IsoGameCharacter target) void
pathToLocation
(int x, int y, int z) void
pathToLocationF
(float x, float y, float z) void
pathToSound
(int x, int y, int z) void
void
PlayAnimUnlooped
(String string) void
PlayAnimWithSpeed
(String string, float framesSpeedPerFrame) void
void
void
void
void
long
long
playSoundLocal
(String file) void
void
void
void
float
processHitDamage
(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta) void
QueueAction
(BaseAction act) void
ReadLiterature
(Literature literature) Used when you read a book, magazine or newspapervoid
void
void
void
boolean
removeFromHands
(InventoryItem item) void
void
removeKnownMediaLine
(String guid) void
removeWornItem
(InventoryItem item) void
removeWornItem
(InventoryItem item, boolean forceDropTooHeavy) void
render
(float x, float y, float z, ColorInfo col, boolean bDoChild, boolean bWallLightingPass, Shader shader) void
void
renderObjectPicker
(float x, float y, float z, ColorInfo lightInfo) void
void
renderShadow
(float x, float y, float z) void
reportEvent
(String name) void
void
void
void
void
void
void
save
(ByteBuffer output, boolean IS_DEBUG_SAVE) void
saveChange
(String change, se.krka.kahlua.vm.KahluaTable tbl, ByteBuffer bb) void
void
void
void
void
SayRadio
(String line, float r, float g, float b, UIFont font, float baseRange, int channel, String customTag) void
void
SayWhisper
(String line) void
Seen
(Stack<IsoMovingObject> SeenList) void
void
void
setAge
(int age) void
setAimAtFloor
(boolean b) void
setAllowConversation
(boolean AllowConversation) void
setAlreadyReadPages
(String fullType, int pages) void
setAnimated
(boolean b) void
setAnimForecasted
(int timeMs) void
setAsleep
(boolean Asleep) void
setAttachedItem
(String location, InventoryItem item) void
setAttachedItems
(AttachedItems other) void
setAttackAnim
(boolean attackAnim) void
setAttackedBy
(IsoGameCharacter AttackedBy) void
setAttackTargetSquare
(IsoGridSquare attackTargetSquare) void
setAttackWasSuperAttack
(boolean AttackWasSuperAttack) void
setAutoWalk
(boolean b) void
void
setAvoidDamage
(boolean avoid) void
setbClimbing
(boolean bClimbing) void
setbDoDefer
(boolean bDoDefer) void
void
setBedType
(String bedType) void
setBeenMovingFor
(float beenMovingFor) void
setBeenSprintingFor
(float beenSprintingFor) void
setBetaDelta
(float BetaDelta) void
setBetaEffect
(float BetaEffect) void
setbFalling
(boolean bFalling) void
setBloodImpactX
(float BloodImpactX) void
setBloodImpactY
(float BloodImpactY) void
setBloodImpactZ
(float BloodImpactZ) void
setBloodSplat
(IsoSprite bloodSplat) void
setbOnBed
(boolean bOnBed) void
setBuildCheat
(boolean buildCheat) void
setBumpDone
(boolean val) void
setBumpedChr
(IsoGameCharacter bumpedChr) void
setBumpFall
(boolean val) void
setBumpFallType
(String val) void
setBumpStaggered
(boolean val) void
setBumpType
(String bumpType) void
setbUseParts
(boolean bUseParts) void
setCanShout
(boolean canShout) void
setClickSound
(String clickSound) void
void
void
void
void
void
void
setCriticalHit
(boolean isCrit) void
setDangerLevels
(float dangerLevels) void
setDeathDragDown
(boolean dragDown) void
setDebugMonitor
(AnimatorDebugMonitor monitor) void
void
setDefaultState
(State defaultState) void
setDelayToSleep
(float delay) void
setDepressDelta
(float DepressDelta) void
setDepressEffect
(float DepressEffect) void
setDescriptor
(SurvivorDesc descriptor) void
setDieCount
(int DieCount) void
setDir
(IsoDirections directions) void
setDirectionAngle
(float angleDegrees) void
setDoDeathSound
(boolean doDeathSound) void
setFallOnFront
(boolean fallOnFront) void
setFallTime
(float fallTime) void
setFarmingCheat
(boolean b) void
setFemale
(boolean isFemale) void
setFireKillRate
(float FireKillRate) void
setFireSpreadProbability
(int FireSpreadProbability) void
setFollowingTarget
(IsoGameCharacter FollowingTarget) void
setForceShove
(boolean forceShove) void
setForceWakeUpTime
(float ForceWakeUpTime) void
setForwardDirection
(float x, float y) void
void
setGodMod
(boolean b) void
setHaloNote
(String str) void
setHaloNote
(String str, float dispTime) void
setHaloNote
(String str, int r, int g, int b, float dispTime) void
setHealth
(float Health) void
setHealthCheat
(boolean healthCheat) void
setHideWeaponModel
(boolean hideWeaponModel) void
setHitFromBehind
(boolean hitFromBehind) void
setHitReaction
(String hitReaction) void
setHurtSound
(String hurtSound) void
setIgnoreAimingInput
(boolean b) void
setIgnoreMovement
(boolean ignoreMovement) void
setIgnoreStaggerBack
(boolean IgnoreStaggerBack) void
setInventory
(ItemContainer inventory) void
setInvincible
(boolean invincible) void
setInvisible
(boolean b) void
setIsAiming
(boolean aIsAiming) void
setIsNPC
(boolean isAI) void
setKnockedDown
(boolean bKnockedDown) void
setLastBump
(long lastBump) void
setLastChatMessage
(ChatMessage lastChatMessage) void
setLastCollidedN
(boolean lastCollidedN) void
setLastCollidedW
(boolean lastCollidedW) void
setLastFallSpeed
(float lastFallSpeed) void
setLastHeardSound
(int x, int y, int z) void
setLastHitCount
(int hitCount) void
setLastHourSleeped
(int lastHourSleeped) void
setLastLocalEnemies
(int LastLocalEnemies) void
setLastSpokenLine
(String line) void
setLastZombieKills
(int LastZombieKills) void
setLeaveBodyTimedown
(float leaveBodyTimedown) void
setLegsSprite
(IsoSprite legsSprite) void
setLevelUpMultiplier
(float LevelUpMultiplier) void
setLlx
(float llx) void
setLly
(float lly) void
setLlz
(float llz) void
setLrx
(float lrx) void
setLry
(float lry) void
setMaxTwist
(float degrees) Specify the maximum twist angle, in degrees.void
setMaxWeight
(int maxWeight) void
setMaxWeightBase
(int maxWeightBase) void
setMechanicsCheat
(boolean mechanicsCheat) void
setMeleeDelay
(float delay) void
setMetabolicTarget
(float target) void
void
setMomentumScalar
(float val) void
setMovablesCheat
(boolean b) void
setMoveDelta
(float moveDelta) void
setMoveForwardVec
(Vector2 moveForwardVec) void
setMoving
(boolean val) void
setNextWander
(int NextWander) void
setNPC
(boolean newvalue) void
setNumSurvivorsInVicinity
(int NumSurvivorsInVicinity) void
setOnDeathDone
(boolean done) void
setOnFire
(boolean OnFire) void
void
setOnKillDone
(boolean done) void
setPainDelta
(float PainDelta) void
setPainEffect
(float PainEffect) void
setPath2
(PolygonalMap2.Path path) void
setPathIndex
(int pathIndex) void
setPathing
(boolean pathing) void
setPatience
(int Patience) void
setPatienceMax
(int PatienceMax) void
setPatienceMin
(int PatienceMin) void
setPerkLevelDebug
(PerkFactory.Perk perks, int level) void
setPersistentOutfitID
(int outfitID) void
setPersistentOutfitID
(int outfitID, boolean init) void
setPlayingDeathSound
(boolean playing) void
setPrimaryHandItem
(InventoryItem leftHandItem) void
setRangedWeaponEmpty
(boolean val) void
setReading
(boolean isReading) void
setReanim
(boolean Reanim) void
setReanimAnimDelay
(int ReanimAnimDelay) void
setReanimAnimFrame
(int ReanimAnimFrame) void
setReanimateTimer
(float ReanimateTimer) void
setRecoilDelay
(float recoilDelay) void
setReduceInfectionPower
(float reduceInfectionPower) void
setRemoteID
(int RemoteID) void
setRunning
(boolean bRunning) void
void
setSayLine
(String sayLine) void
setSceneCulled
(boolean isCulled) Specify whether this character is currently not to be drawn, as it is outside the visible area.void
setSecondaryHandItem
(InventoryItem rightHandItem) void
setShowAdminTag
(boolean showAdminTag) void
setSitOnGround
(boolean sitOnGround) void
setSleepingTabletDelta
(float SleepingTabletDelta) void
setSleepingTabletEffect
(float SleepingTabletEffect) void
setSlowFactor
(float slowFactor) void
setSlowTimer
(float slowTimer) void
setSneaking
(boolean bSneaking) void
setSpeakColour
(Color SpeakColour) void
setSpeakColourInfo
(ColorInfo info) void
setSpeaking
(boolean Speaking) void
setSpeakTime
(int SpeakTime) void
setSpeedMod
(float speedMod) void
setSprinting
(boolean bSprinting) void
setStaggerTimeMod
(float staggerTimeMod) void
setStateMachineLocked
(boolean val) void
setSuperAttack
(boolean superAttack) void
setSurvivorKills
(int survivorKills) void
setTeleport
(NetworkTeleport _teleport) void
setTemperature
(float t) void
setTextureCreator
(ModelInstanceTextureCreator textureCreator) void
setTimedActionInstantCheat
(boolean b) void
setTimeOfSleep
(float timeOfSleep) void
setTimeSinceLastSmoke
(float timeSinceLastSmoke) void
setTimeThumping
(int TimeThumping) void
setTurnDelta
(float m_turnDelta) void
setUnlimitedCarry
(boolean unlimitedCarry) void
setUnlimitedEndurance
(boolean unlimitedEndurance) void
setUseHandWeapon
(HandWeapon useHandWeapon) void
setVariable
(String key, boolean value) void
setVariable
(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackBool.CallbackSetStrongTyped callbackSet) Strong-typed utility function.void
setVariable
(String key, float value) void
setVariable
(String key, float defaultVal, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, float defaultVal, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackFloat.CallbackSetStrongTyped callbackSet) Strong-typed utility function.void
setVariable
(String key, int defaultVal, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, int defaultVal, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackInt.CallbackSetStrongTyped callbackSet) Strong-typed utility function.void
setVariable
(String key, String value) void
setVariable
(String key, String defaultVal, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet) Strong-typed utility function.void
setVariable
(String key, String defaultVal, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackString.CallbackSetStrongTyped callbackSet) Strong-typed utility function.void
Set the specified animation variable slot.void
SetVariable
(String key, String value) void
void
setVisibleToNPCs
(boolean VisibleToNPCs) void
setWornItem
(String location, InventoryItem item) void
setWornItem
(String location, InventoryItem item, boolean forceDropTooHeavy) void
setWornItems
(WornItems other) void
Deprecated.void
setZombieKills
(int ZombieKills) boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
SleepingTablet
(float SleepingTabletDelta) void
smashCarWindow
(VehiclePart part) void
void
splatBlood
(int dist, float alpha) void
void
void
void
void
StartAction
(BaseAction act) void
startEvent
(long eventInstance, GameSoundClip clip, BitSet parameterSet) void
void
StartTimedActionAnim
(String event) void
StartTimedActionAnim
(String event, String type) void
void
void
void
void
void
stopEvent
(long eventInstance, GameSoundClip clip, BitSet parameterSet) void
stopOrTriggerSound
(long eventInstance) void
boolean
testDefense
(IsoZombie zomb) Test if we're able to defend a zombie bite Can only happen if zombie is attacking from front Calcul include current weapon skills, fitness & strengthtestDotSide
(IsoMovingObject target) void
Throw
(HandWeapon weapon) void
update()
void
void
void
updateEvent
(long eventInstance, GameSoundClip clip) void
void
void
void
void
void
void
Methods inherited from class zombie.iso.IsoMovingObject
canHaveMultipleHits, collideWith, compareToY, Despawn, DistTo, DistTo, distToNearestCamCharacter, DistToProper, DistToSquared, DistToSquared, DoCollideNorS, DoCollideWorE, doStairs, ensureOnTile, getBuilding, getBumpedType, getCollidedObject, getCollideType, getCurrentSquare, getCurrentZone, getDistanceSq, getEatingZombies, getFacingPosition, getFeelersize, getFeelerTile, getFuturWalkedSquare, getGlobalMovementMod, getHitDir, getHitForce, getHitFromAngle, getID, getIDCount, getImpulsex, getImpulsey, getLastCollideTime, getLastSquare, getLastTargettedBy, getLimpulsex, getLimpulsey, getLx, getLy, getLz, getMasterRegion, getMovementLastFrame, getNoDamage, getNx, getNy, getObjectName, getPathFindIndex, getPosition, getScreenX, getScreenY, getScriptModule, getScriptnx, getScriptny, getSquare, getStateEventDelayTimer, getThumpTarget, getTimeSinceZombieAttack, getVectorFromDirection, getVectorFromDirection, getWeight, getWeight, getWidth, getX, getY, getZ, isbAltCollide, isCharacter, isCloseKilled, isCollidable, isCollided, isCollidedE, isCollidedN, isCollidedS, isCollidedThisFrame, isCollidedW, isCollidedWithDoor, isCollidedWithVehicle, isDestroyed, isEatingOther, isFirstUpdate, isOnFloor, isPushableForSeparate, isPushedByForSeparate, isShootable, isSolid, isSolidForSeparate, isZombiesDontAttack, Move, MoveUnmodded, onMouseRightClick, onMouseRightReleased, removeFromSquare, separate, setbAltCollide, setCloseKilled, setCollidable, setCollidedE, setCollidedN, setCollidedObject, setCollidedS, setCollidedThisFrame, setCollidedW, setCollidedWithDoor, setCollideType, setCurrent, setDestroyed, setEatingZombies, setFeelersize, setFirstUpdate, setHitDir, setHitForce, setHitFromAngle, setID, setIDCount, setImpulsex, setImpulsey, setLast, setLastCollideTime, setLastTargettedBy, setLimpulsex, setLimpulsey, setLx, setLy, setLz, setMovementLastFrame, setMovingSquareNow, setNoDamage, setNx, setNy, setOnFloor, setPathFindIndex, setScriptModule, setScriptnx, setScriptny, setShootable, setSolid, setStateEventDelayTimer, setThumpTarget, setTimeSinceZombieAttack, setWeight, setWidth, setX, setY, setZ, setZombiesDontAttack, spotted
Methods inherited from class zombie.iso.IsoObject
addChild, addSecondaryContainer, addSheetRope, addToWorld, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, canAddSheetRope, checkAmbientSound, checkHaveElectricity, cleanWallBlood, clearAttachedAnimSprite, Collision, countAddSheetRope, createContainersFromSpriteProperties, customHashCode, Damage, debugPrintout, destroyFence, DirtySlice, doFindExternalWaterSource, DoSpecialTooltip, DoTooltip, factoryClassFromFileInput, factoryFromFileInput, factoryFromFileInput, factoryFromFileInput_OLD, factoryGetClassID, FindExternalWaterSource, FindExternalWaterSource, FindWaterSourceOnSquare, getAlpha, getAlpha, getAttachedAnimSprite, getCell, getChildSprites, getChunk, getContainer, getContainerByEitherType, getContainerByIndex, getContainerByType, getContainerCount, getContainerIndex, getCustomColor, getDamage, getDir, getFacingPositionAlt, getFactoryVehicle, getHighlightColor, getIsSurfaceNormalOffset, getItemContainer, getKeyId, getLastRendered, getLastRenderedRendered, getMaskClickedY, getModData, getMovingObjectIndex, getName, getNew, getNew, getObjectIndex, getObjectRenderEffects, getObjectRenderEffectsToApply, getOffsetX, getOffsetY, getOutlineHighlightCol, getOutlineHighlightCol, getOutlineThickness, getOverlaySprite, getOverlaySpriteColor, getPipedFuelAmount, getProperties, getRenderEffectMaster, getRenderYOffset, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getScriptName, getSpecialObjectIndex, getSprite, getSpriteGridObjects, getSpriteName, getStaticMovingObjectIndex, getSurfaceNormalOffset, getSurfaceOffset, getSurfaceOffsetNoTable, getTable, getTargetAlpha, getTargetAlpha, getTextureName, getThumpableFor, getThumpCondition, getTile, getType, getUsesExternalWaterSource, GetVehicleSlowFactor, getWaterAmount, getWaterMax, getWindRenderEffects, getWorldObjectIndex, hasExternalWaterSource, hasModData, HasTooltip, hasWater, haveSheetRope, haveSpecialTooltip, Hit, HitByVehicle, isAlphaAndTargetZero, isAlphaAndTargetZero, isAlphaZero, isAlphaZero, isBlink, isExistInTheWorld, isFloor, isHighlighted, isHoppable, isItemAllowedInContainer, isMaskClicked, isMovedThumpable, isNoPicking, isNorthHoppable, isOutlineHighlight, isOutlineHighlight, isOutlineHlAttached, isOutlineHlAttached, isOutlineHlBlink, isOutlineHlBlink, isOutlineOnMouseover, isRemoveItemAllowedFromContainer, isSpriteInvisible, isStairsNorth, isStairsObject, isStairsWest, isTableSurface, isTableTopObject, isTaintedWater, isTargetAlphaZero, load, loadFromRemoteBuffer, loadFromRemoteBuffer, loadState, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeRenderEffect, removeSheetRope, renderAttachedAndOverlaySprites, renderFloorTile, renderFxMask, renderWallTile, renderWallTileOnly, replaceItem, reset, reuseGridSquare, save, saveState, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlpha, setAlphaAndTarget, setAlphaAndTarget, setAlphaToTarget, setAttachedAnimSprite, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDefaultCondition, setDir, setHighlightColor, setHighlightColor, setHighlighted, setHighlighted, setKeyId, setLastRendered, setLastRenderedRendered, setMovedThumpable, setName, SetName, setNoPicking, setOffsetX, setOffsetY, setOutlineHighlight, setOutlineHighlight, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHlAttached, setOutlineHlAttached, setOutlineHlBlink, setOutlineHlBlink, setOutlineOnMouseover, setOutlineThickness, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySpriteColor, setPipedFuelAmount, setRenderEffect, setRenderEffect, setRenderYOffset, setRerouteCollide, setRerouteMask, setSpecialTooltip, setSprite, setSprite, setSpriteFromName, setSquare, setTable, setTaintedWater, setTargetAlpha, setTargetAlpha, setType, setUsesExternalWaterSource, setWaterAmount, softReset, syncIsoObject, syncIsoObjectSend, TestCollide, TestPathfindCollide, TestVision, Thump, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColor, transmitModData, transmitUpdatedSprite, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, UnCollision, unsetOutlineHighlight, useItemOn, useWater, WeaponHit, writeToRemoteBuffer
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.chat.ChatElementOwner
getSquare, getX, getY, getZ
Methods inherited from interface zombie.core.skinnedmodel.advancedanimation.IAnimatable
getOnlineID
-
Field Details
-
doRenderShadow
public boolean doRenderShadow -
doDirtBloodEtc
public boolean doDirtBloodEtc -
RENDER_OFFSET_X
public static final int RENDER_OFFSET_X- See Also:
-
RENDER_OFFSET_Y
public static final int RENDER_OFFSET_Y- See Also:
-
s_maxPossibleTwist
public static final float s_maxPossibleTwist- See Also:
-
vocalEvent
public long vocalEvent -
removedFromWorldMS
public long removedFromWorldMS -
amputations
-
hair
-
beard
-
-
secondaryHandModel
-
actionContext
-
emitter
-
callOut
public boolean callOut -
ReanimatedCorpse
-
ReanimatedCorpseID
public int ReanimatedCorpseID -
advancedAnimator
-
StateMachineParams
-
clientIgnoreCollision
public long clientIgnoreCollision -
bumpNbr
public int bumpNbr -
upKillCount
public boolean upKillCount -
Asleep
public boolean Asleep -
blockTurning
public boolean blockTurning -
speedMod
public float speedMod -
legsSprite
-
knockbackAttackMod
public float knockbackAttackMod -
IsVisibleToPlayer
public final boolean[] IsVisibleToPlayer -
savedVehicleX
public float savedVehicleX -
savedVehicleY
public float savedVehicleY -
savedVehicleSeat
public short savedVehicleSeat -
savedVehicleRunning
public boolean savedVehicleRunning -
bagsWorn
-
Traits
-
attackVars
-
hitList
-
bUpdateEquippedTextures
public boolean bUpdateEquippedTextures -
lastAutomaticShoot
public long lastAutomaticShoot -
shootInARow
public int shootInARow -
realx
public float realx -
realy
public float realy -
realz
public byte realz -
realState
-
realdir
-
overridePrimaryHandModel
-
overrideSecondaryHandModel
-
forceNullOverride
public boolean forceNullOverride -
invRadioFreq
Deprecated. -
networkCharacter
-
-
Constructor Details
-
IsoGameCharacter
-
-
Method Details
-
updateRecoilVar
public void updateRecoilVar() -
getMomentumScalar
public float getMomentumScalar() -
setMomentumScalar
public void setMomentumScalar(float val) -
getDeferredMovement
-
getDeferredAngleDelta
public float getDeferredAngleDelta() -
getDeferredRotationWeight
public float getDeferredRotationWeight() -
isStrafing
public boolean isStrafing() -
dbgGetAnimTrack
-
dbgGetAnimTrackName
-
dbgGetAnimTrackTime
public float dbgGetAnimTrackTime(int layerIdx, int trackIdx) -
dbgGetAnimTrackWeight
public float dbgGetAnimTrackWeight(int layerIdx, int trackIdx) -
getTwist
public float getTwist()The character's current twist angle, in degrees. -
getShoulderTwist
public float getShoulderTwist()The character's current shoulder-twist angle, in degrees. -
getMaxTwist
public float getMaxTwist()The maximum twist angle, in degrees. -
setMaxTwist
public void setMaxTwist(float degrees) Specify the maximum twist angle, in degrees. -
getExcessTwist
public float getExcessTwist()The character's excess twist, in degrees. The excess is > 0 if the character is trying to twist further than their current maximum twist. ie. The amount that the desired twist exceeds the maximum twist. eg. If the character is trying to twist by 90 degrees, but their maximum is set to 70, then excess = 20 -
getAbsoluteExcessTwist
public float getAbsoluteExcessTwist() -
getAnimAngleTwistDelta
public float getAnimAngleTwistDelta() -
getAnimAngleStepDelta
public float getAnimAngleStepDelta() -
getTargetTwist
public float getTargetTwist()The desired twist, unclamped, in degrees. -
isRangedWeaponEmpty
public boolean isRangedWeaponEmpty()- Specified by:
isRangedWeaponEmpty
in interfaceILuaGameCharacter
-
setRangedWeaponEmpty
public void setRangedWeaponEmpty(boolean val) - Specified by:
setRangedWeaponEmpty
in interfaceILuaGameCharacter
-
hasFootInjury
public boolean hasFootInjury() -
isInTrees2
public boolean isInTrees2(boolean ignoreBush) -
isInTreesNoBush
public boolean isInTreesNoBush() -
isInTrees
public boolean isInTrees() -
getSurvivorMap
- Returns:
- the SurvivorMap
-
getLevelUpLevels
public static int[] getLevelUpLevels()- Returns:
- the LevelUpLevels
-
getTempo
- Returns:
- the tempo
-
getInf
- Returns:
- the inf
-
getBrain
-
getIsNPC
public boolean getIsNPC() -
setIsNPC
public void setIsNPC(boolean isAI) -
getEmitter
- Specified by:
getEmitter
in interfaceILuaGameCharacter
-
updateEmitter
public void updateEmitter() -
getActionContext
- Specified by:
getActionContext
in interfaceIAnimatable
-
getPreviousActionContextStateName
-
getCurrentActionContextStateName
-
hasAnimationPlayer
public boolean hasAnimationPlayer() -
getAnimationPlayer
- Specified by:
getAnimationPlayer
in interfaceIAnimatable
-
releaseAnimationPlayer
public void releaseAnimationPlayer() -
getAdvancedAnimator
- Specified by:
getAdvancedAnimator
in interfaceIAnimatable
-
getModelInstance
- Specified by:
getModelInstance
in interfaceIAnimatable
-
getCurrentStateName
-
getPreviousStateName
-
getAnimationDebug
-
getTalkerType
- Specified by:
getTalkerType
in interfaceTalker
-
isAnimForecasted
public boolean isAnimForecasted() -
setAnimForecasted
public void setAnimForecasted(int timeMs) -
resetModel
public void resetModel()- Specified by:
resetModel
in interfaceILuaGameCharacter
-
resetModelNextFrame
public void resetModelNextFrame()- Specified by:
resetModelNextFrame
in interfaceILuaGameCharacter
-
clothingItemChanged
clothingItemChanged Called when a ClothingItem file has changed on disk, causing the OutfitManager to broadcast this event. Checks if this item is currently used by this player's Outfit. Reloads and re-equips if so.- Specified by:
clothingItemChanged
in interfaceIClothingItemListener
- Parameters:
itemGuid
- The item's Globally Unique Identifier (GUID).
-
reloadOutfit
public void reloadOutfit() -
isSceneCulled
public boolean isSceneCulled()Is this character currently culled from the visible scene graph. Eg. Zombies not seen by the player. Objects outside the rendered window etc.- Returns:
- TRUE if this character should be drawn. FALSE otherwise.
-
setSceneCulled
public void setSceneCulled(boolean isCulled) Specify whether this character is currently not to be drawn, as it is outside the visible area. Eg. Zombies not seen by the player. Objects outside the rendered window etc.- Parameters:
isCulled
-
-
onCullStateChanged
Callback from ModelManager.Add/Remove functions.NOTE: Do not call this directly, it is intended for use by the ModelManager only.
- Parameters:
modelManager
- Event sender.isCulled
- Whether or not this object is culled from the visible scene or not.
-
dressInRandomOutfit
public void dressInRandomOutfit()Picks a random outfit from the OutfitManager -
dressInNamedOutfit
- Specified by:
dressInNamedOutfit
in interfaceILuaGameCharacterClothing
-
dressInPersistentOutfit
- Specified by:
dressInPersistentOutfit
in interfaceILuaGameCharacterClothing
-
dressInPersistentOutfitID
public void dressInPersistentOutfitID(int outfitID) - Specified by:
dressInPersistentOutfitID
in interfaceILuaGameCharacterClothing
-
getOutfitName
- Specified by:
getOutfitName
in interfaceILuaGameCharacterClothing
-
dressInClothingItem
-
getRandomDefaultOutfit
-
getModel
-
hasActiveModel
public boolean hasActiveModel() -
hasItems
- Specified by:
hasItems
in interfaceILuaGameCharacter
-
getLevelUpLevels
public int getLevelUpLevels(int level) -
getLevelMaxForXp
public int getLevelMaxForXp() -
getXpForLevel
public int getXpForLevel(int level) - Specified by:
getXpForLevel
in interfaceILuaGameCharacter
-
DoDeath
-
DoDeath
-
getFollowingTarget
- Returns:
- the FollowingTarget
-
setFollowingTarget
- Parameters:
FollowingTarget
- the FollowingTarget to set
-
getLocalList
- Returns:
- the LocalList
-
getLocalNeutralList
- Returns:
- the LocalNeutralList
-
getLocalGroupList
- Returns:
- the LocalGroupList
-
getLocalRelevantEnemyList
- Returns:
- the LocalRelevantEnemyList
-
getDangerLevels
public float getDangerLevels()- Returns:
- the dangerLevels
-
setDangerLevels
public void setDangerLevels(float dangerLevels) - Parameters:
dangerLevels
- the dangerLevels to set
-
getPerkList
- Returns:
- the PerkList
-
getLeaveBodyTimedown
public float getLeaveBodyTimedown()- Returns:
- the leaveBodyTimedown
-
setLeaveBodyTimedown
public void setLeaveBodyTimedown(float leaveBodyTimedown) - Parameters:
leaveBodyTimedown
- the leaveBodyTimedown to set
-
isAllowConversation
public boolean isAllowConversation()- Returns:
- the AllowConversation
-
setAllowConversation
public void setAllowConversation(boolean AllowConversation) - Parameters:
AllowConversation
- the AllowConversation to set
-
getReanimateTimer
public float getReanimateTimer()- Returns:
- the ReanimateTimer
-
setReanimateTimer
public void setReanimateTimer(float ReanimateTimer) - Parameters:
ReanimateTimer
- the ReanimateTimer to set
-
getReanimAnimFrame
public int getReanimAnimFrame()- Returns:
- the ReanimAnimFrame
-
setReanimAnimFrame
public void setReanimAnimFrame(int ReanimAnimFrame) - Parameters:
ReanimAnimFrame
- the ReanimAnimFrame to set
-
getReanimAnimDelay
public int getReanimAnimDelay()- Returns:
- the ReanimAnimDelay
-
setReanimAnimDelay
public void setReanimAnimDelay(int ReanimAnimDelay) - Parameters:
ReanimAnimDelay
- the ReanimAnimDelay to set
-
isReanim
public boolean isReanim()- Returns:
- the Reanim
-
setReanim
public void setReanim(boolean Reanim) - Parameters:
Reanim
- the Reanim to set
-
isVisibleToNPCs
public boolean isVisibleToNPCs()- Returns:
- the VisibleToNPCs
-
setVisibleToNPCs
public void setVisibleToNPCs(boolean VisibleToNPCs) - Parameters:
VisibleToNPCs
- the VisibleToNPCs to set
-
getDieCount
public int getDieCount()- Returns:
- the DieCount
-
setDieCount
public void setDieCount(int DieCount) - Parameters:
DieCount
- the DieCount to set
-
getLlx
public float getLlx()- Returns:
- the llx
-
setLlx
public void setLlx(float llx) - Parameters:
llx
- the llx to set
-
getLly
public float getLly()- Returns:
- the lly
-
setLly
public void setLly(float lly) - Parameters:
lly
- the lly to set
-
getLlz
public float getLlz()- Returns:
- the llz
-
setLlz
public void setLlz(float llz) - Parameters:
llz
- the llz to set
-
getRemoteID
public int getRemoteID()- Returns:
- the RemoteID
-
setRemoteID
public void setRemoteID(int RemoteID) - Parameters:
RemoteID
- the RemoteID to set
-
getNumSurvivorsInVicinity
public int getNumSurvivorsInVicinity()- Returns:
- the NumSurvivorsInVicinity
-
setNumSurvivorsInVicinity
public void setNumSurvivorsInVicinity(int NumSurvivorsInVicinity) - Parameters:
NumSurvivorsInVicinity
- the NumSurvivorsInVicinity to set
-
getLevelUpMultiplier
public float getLevelUpMultiplier()- Returns:
- the LevelUpMultiplier
-
setLevelUpMultiplier
public void setLevelUpMultiplier(float LevelUpMultiplier) - Parameters:
LevelUpMultiplier
- the LevelUpMultiplier to set
-
getXp
- Specified by:
getXp
in interfaceILuaGameCharacter
- Returns:
- the xp
-
setXp
Deprecated.- Parameters:
xp
- the xp to set
-
getLastLocalEnemies
public int getLastLocalEnemies()- Returns:
- the LastLocalEnemies
-
setLastLocalEnemies
public void setLastLocalEnemies(int LastLocalEnemies) - Parameters:
LastLocalEnemies
- the LastLocalEnemies to set
-
getVeryCloseEnemyList
- Returns:
- the VeryCloseEnemyList
-
getLastKnownLocation
- Returns:
- the LastKnownLocation
-
getAttackedBy
- Returns:
- the AttackedBy
-
setAttackedBy
- Parameters:
AttackedBy
- the AttackedBy to set
-
isIgnoreStaggerBack
public boolean isIgnoreStaggerBack()- Returns:
- the IgnoreStaggerBack
-
setIgnoreStaggerBack
public void setIgnoreStaggerBack(boolean IgnoreStaggerBack) - Parameters:
IgnoreStaggerBack
- the IgnoreStaggerBack to set
-
isAttackWasSuperAttack
public boolean isAttackWasSuperAttack()- Returns:
- the AttackWasSuperAttack
-
setAttackWasSuperAttack
public void setAttackWasSuperAttack(boolean AttackWasSuperAttack) - Parameters:
AttackWasSuperAttack
- the AttackWasSuperAttack to set
-
getTimeThumping
public int getTimeThumping()- Returns:
- the TimeThumping
-
setTimeThumping
public void setTimeThumping(int TimeThumping) - Parameters:
TimeThumping
- the TimeThumping to set
-
getPatienceMax
public int getPatienceMax()- Returns:
- the PatienceMax
-
setPatienceMax
public void setPatienceMax(int PatienceMax) - Parameters:
PatienceMax
- the PatienceMax to set
-
getPatienceMin
public int getPatienceMin()- Returns:
- the PatienceMin
-
setPatienceMin
public void setPatienceMin(int PatienceMin) - Parameters:
PatienceMin
- the PatienceMin to set
-
getPatience
public int getPatience()- Returns:
- the Patience
-
setPatience
public void setPatience(int Patience) - Parameters:
Patience
- the Patience to set
-
getCharacterActions
- Specified by:
getCharacterActions
in interfaceILuaGameCharacter
- Returns:
- the CharacterActions
-
hasTimedActions
public boolean hasTimedActions() -
getForwardDirection
- Returns:
- the character's forward direction vector
-
setForwardDirection
- Parameters:
dir
- The character's new forward direction.
-
setForwardDirection
public void setForwardDirection(float x, float y) -
zeroForwardDirectionX
public void zeroForwardDirectionX() -
zeroForwardDirectionY
public void zeroForwardDirectionY() -
getDirectionAngle
public float getDirectionAngle()The forward direction angle, in degrees. -
setDirectionAngle
public void setDirectionAngle(float angleDegrees) -
getAnimAngle
public float getAnimAngle() -
getAnimAngleRadians
public float getAnimAngleRadians() -
getAnimVector
-
getLookAngleRadians
public float getLookAngleRadians() -
getLookVector
-
getDotWithForwardDirection
-
getDotWithForwardDirection
public float getDotWithForwardDirection(float targetX, float targetY) -
isAsleep
public boolean isAsleep()- Specified by:
isAsleep
in interfaceILuaGameCharacter
- Returns:
- the Asleep
-
setAsleep
public void setAsleep(boolean Asleep) - Specified by:
setAsleep
in interfaceILuaGameCharacter
- Parameters:
Asleep
- the Asleep to set
-
getZombieKills
public int getZombieKills()- Specified by:
getZombieKills
in interfaceILuaGameCharacter
- Returns:
- the ZombieKills
-
setZombieKills
public void setZombieKills(int ZombieKills) - Parameters:
ZombieKills
- the ZombieKills to set
-
getLastZombieKills
public int getLastZombieKills()- Returns:
- the LastZombieKills
-
setLastZombieKills
public void setLastZombieKills(int LastZombieKills) - Parameters:
LastZombieKills
- the LastZombieKills to set
-
isSuperAttack
public boolean isSuperAttack()- Returns:
- the superAttack
-
setSuperAttack
public void setSuperAttack(boolean superAttack) - Parameters:
superAttack
- the superAttack to set
-
getForceWakeUpTime
public float getForceWakeUpTime()- Returns:
- the ForceWakeUpTime
-
setForceWakeUpTime
public void setForceWakeUpTime(float ForceWakeUpTime) - Specified by:
setForceWakeUpTime
in interfaceILuaGameCharacter
- Parameters:
ForceWakeUpTime
- the ForceWakeUpTime to set
-
forceAwake
public void forceAwake() -
getBodyDamage
- Specified by:
getBodyDamage
in interfaceILuaGameCharacterDamage
- Returns:
- the BodyDamage
-
getBodyDamageRemote
- Specified by:
getBodyDamageRemote
in interfaceILuaGameCharacterDamage
-
resetBodyDamageRemote
public void resetBodyDamageRemote() -
getDefaultState
- Returns:
- the defaultState
-
setDefaultState
- Parameters:
defaultState
- the defaultState to set
-
getDescriptor
- Specified by:
getDescriptor
in interfaceILuaGameCharacter
- Returns:
- the descriptor
-
setDescriptor
- Specified by:
setDescriptor
in interfaceILuaGameCharacter
- Parameters:
descriptor
- the descriptor to set
-
getFullName
- Specified by:
getFullName
in interfaceILuaGameCharacter
-
getVisual
- Specified by:
getVisual
in interfaceILuaGameCharacter
-
getItemVisuals
-
getItemVisuals
-
isUsingWornItems
public boolean isUsingWornItems() -
getFamiliarBuildings
- Returns:
- the FamiliarBuildings
-
getFinder
- Returns:
- the finder
-
getFireKillRate
public float getFireKillRate()- Returns:
- the FireKillRate
-
setFireKillRate
public void setFireKillRate(float FireKillRate) - Parameters:
FireKillRate
- the FireKillRate to set
-
getFireSpreadProbability
public int getFireSpreadProbability()- Returns:
- the FireSpreadProbability
-
setFireSpreadProbability
public void setFireSpreadProbability(int FireSpreadProbability) - Parameters:
FireSpreadProbability
- the FireSpreadProbability to set
-
getHealth
public float getHealth()- Specified by:
getHealth
in interfaceILuaGameCharacterDamage
- Returns:
- the Health
-
setHealth
public void setHealth(float Health) - Specified by:
setHealth
in interfaceILuaGameCharacterDamage
- Parameters:
Health
- the Health to set
-
isOnDeathDone
public boolean isOnDeathDone()- Specified by:
isOnDeathDone
in interfaceILuaGameCharacterDamage
-
setOnDeathDone
public void setOnDeathDone(boolean done) - Specified by:
setOnDeathDone
in interfaceILuaGameCharacterDamage
-
isOnKillDone
public boolean isOnKillDone()- Specified by:
isOnKillDone
in interfaceILuaGameCharacterDamage
-
setOnKillDone
public void setOnKillDone(boolean done) - Specified by:
setOnKillDone
in interfaceILuaGameCharacterDamage
-
isDeathDragDown
public boolean isDeathDragDown()- Specified by:
isDeathDragDown
in interfaceILuaGameCharacterDamage
-
setDeathDragDown
public void setDeathDragDown(boolean dragDown) - Specified by:
setDeathDragDown
in interfaceILuaGameCharacterDamage
-
isPlayingDeathSound
public boolean isPlayingDeathSound()- Specified by:
isPlayingDeathSound
in interfaceILuaGameCharacterDamage
-
setPlayingDeathSound
public void setPlayingDeathSound(boolean playing) - Specified by:
setPlayingDeathSound
in interfaceILuaGameCharacterDamage
-
getHurtSound
- Returns:
- the hurtSound
-
setHurtSound
- Parameters:
hurtSound
- the hurtSound to set
-
isIgnoreMovementForDirection
Deprecated.- Returns:
- the IgnoreMovementForDirection
-
getInventory
- Specified by:
getInventory
in interfaceILuaGameCharacter
- Returns:
- the inventory
-
setInventory
- Parameters:
inventory
- the inventory to set
-
isPrimaryEquipped
-
getPrimaryHandItem
- Specified by:
getPrimaryHandItem
in interfaceILuaGameCharacter
- Returns:
- the leftHandItem
-
setPrimaryHandItem
- Specified by:
setPrimaryHandItem
in interfaceILuaGameCharacter
- Parameters:
leftHandItem
- the leftHandItem to set
-
initWornItems
-
getWornItems
- Specified by:
getWornItems
in interfaceILuaGameCharacterClothing
-
setWornItems
- Specified by:
setWornItems
in interfaceILuaGameCharacterClothing
-
getWornItem
- Specified by:
getWornItem
in interfaceILuaGameCharacterClothing
-
setWornItem
- Specified by:
setWornItem
in interfaceILuaGameCharacterClothing
-
setWornItem
-
removeWornItem
- Specified by:
removeWornItem
in interfaceILuaGameCharacterClothing
-
removeWornItem
-
clearWornItems
public void clearWornItems()- Specified by:
clearWornItems
in interfaceILuaGameCharacterClothing
-
getBodyLocationGroup
- Specified by:
getBodyLocationGroup
in interfaceILuaGameCharacterClothing
-
onWornItemsChanged
public void onWornItemsChanged() -
initAttachedItems
-
getAttachedItems
- Specified by:
getAttachedItems
in interfaceILuaGameCharacterAttachedItems
-
setAttachedItems
- Specified by:
setAttachedItems
in interfaceILuaGameCharacterAttachedItems
-
getAttachedItem
- Specified by:
getAttachedItem
in interfaceILuaGameCharacterAttachedItems
-
setAttachedItem
- Specified by:
setAttachedItem
in interfaceILuaGameCharacterAttachedItems
-
removeAttachedItem
- Specified by:
removeAttachedItem
in interfaceILuaGameCharacterAttachedItems
-
clearAttachedItems
public void clearAttachedItems()- Specified by:
clearAttachedItems
in interfaceILuaGameCharacterAttachedItems
-
getAttachedLocationGroup
- Specified by:
getAttachedLocationGroup
in interfaceILuaGameCharacterAttachedItems
-
getClothingWetness
-
getClothingItem_Head
- Returns:
- the ClothingItem_Head
-
setClothingItem_Head
- Specified by:
setClothingItem_Head
in interfaceILuaGameCharacterClothing
- Parameters:
item
- the ClothingItem_Head to set
-
getClothingItem_Torso
- Returns:
- the ClothingItem_Torso
-
setClothingItem_Torso
- Specified by:
setClothingItem_Torso
in interfaceILuaGameCharacterClothing
-
getClothingItem_Back
-
setClothingItem_Back
- Specified by:
setClothingItem_Back
in interfaceILuaGameCharacterClothing
-
getClothingItem_Hands
- Returns:
- the ClothingItem_Hands
-
setClothingItem_Hands
- Specified by:
setClothingItem_Hands
in interfaceILuaGameCharacterClothing
- Parameters:
item
- the ClothingItem_Hands to set
-
getClothingItem_Legs
- Returns:
- the ClothingItem_Legs
-
setClothingItem_Legs
- Specified by:
setClothingItem_Legs
in interfaceILuaGameCharacterClothing
- Parameters:
item
- the ClothingItem_Legs to set
-
getClothingItem_Feet
- Returns:
- the ClothingItem_Feet
-
setClothingItem_Feet
- Specified by:
setClothingItem_Feet
in interfaceILuaGameCharacterClothing
- Parameters:
item
- the ClothingItem_Feet to set
-
getNextWander
public int getNextWander()- Returns:
- the NextWander
-
setNextWander
public void setNextWander(int NextWander) - Parameters:
NextWander
- the NextWander to set
-
isOnFire
public boolean isOnFire()- Specified by:
isOnFire
in interfaceILuaGameCharacterDamage
- Returns:
- the OnFire
-
setOnFire
public void setOnFire(boolean OnFire) - Parameters:
OnFire
- the OnFire to set
-
removeFromWorld
public void removeFromWorld()- Overrides:
removeFromWorld
in classIsoMovingObject
-
getPathIndex
public int getPathIndex()- Returns:
- the pathIndex
-
setPathIndex
public void setPathIndex(int pathIndex) - Parameters:
pathIndex
- the pathIndex to set
-
getPathTargetX
public int getPathTargetX()- Returns:
- the PathTargetX
-
getPathTargetY
public int getPathTargetY()- Returns:
- the PathTargetY
-
getPathTargetZ
public int getPathTargetZ()- Returns:
- the PathTargetZ
-
getSecondaryHandItem
- Specified by:
getSecondaryHandItem
in interfaceILuaGameCharacter
- Returns:
- the rightHandItem
-
setSecondaryHandItem
- Specified by:
setSecondaryHandItem
in interfaceILuaGameCharacter
- Parameters:
rightHandItem
- the rightHandItem to set
-
isHandItem
- Specified by:
isHandItem
in interfaceILuaGameCharacter
-
isPrimaryHandItem
- Specified by:
isPrimaryHandItem
in interfaceILuaGameCharacter
-
isSecondaryHandItem
- Specified by:
isSecondaryHandItem
in interfaceILuaGameCharacter
-
isItemInBothHands
- Specified by:
isItemInBothHands
in interfaceILuaGameCharacter
-
removeFromHands
- Specified by:
removeFromHands
in interfaceILuaGameCharacter
-
getSpeakColour
- Returns:
- the SpeakColour
-
setSpeakColour
- Parameters:
SpeakColour
- the SpeakColour to set
-
setSpeakColourInfo
- Specified by:
setSpeakColourInfo
in interfaceILuaGameCharacter
-
getSlowFactor
public float getSlowFactor()- Returns:
- the slowFactor
-
setSlowFactor
public void setSlowFactor(float slowFactor) - Parameters:
slowFactor
- the slowFactor to set
-
getSlowTimer
public float getSlowTimer()- Returns:
- the slowTimer
-
setSlowTimer
public void setSlowTimer(float slowTimer) - Parameters:
slowTimer
- the slowTimer to set
-
isbUseParts
public boolean isbUseParts()- Returns:
- the bUseParts
-
setbUseParts
public void setbUseParts(boolean bUseParts) - Parameters:
bUseParts
- the bUseParts to set
-
isSpeaking
public boolean isSpeaking()- Specified by:
isSpeaking
in interfaceILuaGameCharacter
- Returns:
- the Speaking
-
setSpeaking
public void setSpeaking(boolean Speaking) - Parameters:
Speaking
- the Speaking to set
-
getSpeakTime
public float getSpeakTime()- Returns:
- the SpeakTime
-
setSpeakTime
public void setSpeakTime(int SpeakTime) - Parameters:
SpeakTime
- the SpeakTime to set
-
getSpeedMod
public float getSpeedMod()- Returns:
- the speedMod
-
setSpeedMod
public void setSpeedMod(float speedMod) - Parameters:
speedMod
- the speedMod to set
-
getStaggerTimeMod
public float getStaggerTimeMod()- Returns:
- the staggerTimeMod
-
setStaggerTimeMod
public void setStaggerTimeMod(float staggerTimeMod) - Parameters:
staggerTimeMod
- the staggerTimeMod to set
-
getStateMachine
- Returns:
- the stateMachine
-
getMoodles
- Specified by:
getMoodles
in interfaceILuaGameCharacter
- Returns:
- the Moodles
-
getStats
- Specified by:
getStats
in interfaceILuaGameCharacter
- Returns:
- the stats
-
getUsedItemsOn
- Returns:
- the UsedItemsOn
-
getUseHandWeapon
- Returns:
- the useHandWeapon
-
setUseHandWeapon
- Parameters:
useHandWeapon
- the useHandWeapon to set
-
getLegsSprite
- Returns:
- the legsSprite
-
setLegsSprite
- Parameters:
legsSprite
- the legsSprite to set
-
getAttackTargetSquare
- Returns:
- the attackTargetSquare
-
setAttackTargetSquare
- Parameters:
attackTargetSquare
- the attackTargetSquare to set
-
getBloodImpactX
public float getBloodImpactX()- Returns:
- the BloodImpactX
-
setBloodImpactX
public void setBloodImpactX(float BloodImpactX) - Parameters:
BloodImpactX
- the BloodImpactX to set
-
getBloodImpactY
public float getBloodImpactY()- Returns:
- the BloodImpactY
-
setBloodImpactY
public void setBloodImpactY(float BloodImpactY) - Parameters:
BloodImpactY
- the BloodImpactY to set
-
getBloodImpactZ
public float getBloodImpactZ()- Returns:
- the BloodImpactZ
-
setBloodImpactZ
public void setBloodImpactZ(float BloodImpactZ) - Parameters:
BloodImpactZ
- the BloodImpactZ to set
-
getBloodSplat
- Returns:
- the bloodSplat
-
setBloodSplat
- Parameters:
bloodSplat
- the bloodSplat to set
-
isbOnBed
public boolean isbOnBed()- Returns:
- the bOnBed
-
setbOnBed
public void setbOnBed(boolean bOnBed) - Parameters:
bOnBed
- the bOnBed to set
-
getMoveForwardVec
- Returns:
- the moveForwardVec
-
setMoveForwardVec
- Parameters:
moveForwardVec
- the moveForwardVec to set
-
isPathing
public boolean isPathing()- Returns:
- the pathing
-
setPathing
public void setPathing(boolean pathing) - Parameters:
pathing
- the pathing to set
-
getLocalEnemyList
- Returns:
- the LocalEnemyList
-
getEnemyList
- Returns:
- the EnemyList
-
getTraits
- Specified by:
getTraits
in interfaceILuaGameCharacter
- Returns:
- the Traits
-
getCharacterTraits
- Returns:
- the CharacterTraits, a TraitCollection extended with direct links to known traits
-
getMaxWeight
public int getMaxWeight()- Specified by:
getMaxWeight
in interfaceILuaGameCharacter
- Returns:
- the maxWeight
-
setMaxWeight
public void setMaxWeight(int maxWeight) - Parameters:
maxWeight
- the maxWeight to set
-
getMaxWeightBase
public int getMaxWeightBase()- Returns:
- the maxWeightBase
-
setMaxWeightBase
public void setMaxWeightBase(int maxWeightBase) - Parameters:
maxWeightBase
- the maxWeightBase to set
-
getSleepingTabletDelta
public float getSleepingTabletDelta()- Returns:
- the SleepingTabletDelta
-
setSleepingTabletDelta
public void setSleepingTabletDelta(float SleepingTabletDelta) - Parameters:
SleepingTabletDelta
- the SleepingTabletDelta to set
-
getBetaEffect
public float getBetaEffect()- Returns:
- the BetaEffect
-
setBetaEffect
public void setBetaEffect(float BetaEffect) - Parameters:
BetaEffect
- the BetaEffect to set
-
getDepressEffect
public float getDepressEffect()- Returns:
- the DepressEffect
-
setDepressEffect
public void setDepressEffect(float DepressEffect) - Parameters:
DepressEffect
- the DepressEffect to set
-
getSleepingTabletEffect
public float getSleepingTabletEffect()- Specified by:
getSleepingTabletEffect
in interfaceILuaGameCharacterHealth
- Returns:
- the SleepingTabletEffect
-
setSleepingTabletEffect
public void setSleepingTabletEffect(float SleepingTabletEffect) - Specified by:
setSleepingTabletEffect
in interfaceILuaGameCharacterHealth
- Parameters:
SleepingTabletEffect
- the SleepingTabletEffect to set
-
getBetaDelta
public float getBetaDelta()- Returns:
- the BetaDelta
-
setBetaDelta
public void setBetaDelta(float BetaDelta) - Parameters:
BetaDelta
- the BetaDelta to set
-
getDepressDelta
public float getDepressDelta()- Returns:
- the DepressDelta
-
setDepressDelta
public void setDepressDelta(float DepressDelta) - Parameters:
DepressDelta
- the DepressDelta to set
-
getPainEffect
public float getPainEffect()- Returns:
- the PainEffect
-
setPainEffect
public void setPainEffect(float PainEffect) - Parameters:
PainEffect
- the PainEffect to set
-
getPainDelta
public float getPainDelta()- Returns:
- the PainDelta
-
setPainDelta
public void setPainDelta(float PainDelta) - Parameters:
PainDelta
- the PainDelta to set
-
isbDoDefer
public boolean isbDoDefer()- Returns:
- the bDoDefer
-
setbDoDefer
public void setbDoDefer(boolean bDoDefer) - Parameters:
bDoDefer
- the bDoDefer to set
-
getLastHeardSound
- Returns:
- the LastHeardSound
-
setLastHeardSound
public void setLastHeardSound(int x, int y, int z) -
getLrx
public float getLrx()- Returns:
- the lrx
-
setLrx
public void setLrx(float lrx) - Parameters:
lrx
- the lrx to set
-
getLry
public float getLry()- Returns:
- the lry
-
setLry
public void setLry(float lry) - Parameters:
lry
- the lry to set
-
isClimbing
public boolean isClimbing()- Returns:
- the bClimbing
-
setbClimbing
public void setbClimbing(boolean bClimbing) - Parameters:
bClimbing
- the bClimbing to set
-
isLastCollidedW
public boolean isLastCollidedW()- Returns:
- the lastCollidedW
-
setLastCollidedW
public void setLastCollidedW(boolean lastCollidedW) - Parameters:
lastCollidedW
- the lastCollidedW to set
-
isLastCollidedN
public boolean isLastCollidedN()- Returns:
- the lastCollidedN
-
setLastCollidedN
public void setLastCollidedN(boolean lastCollidedN) - Parameters:
lastCollidedN
- the lastCollidedN to set
-
getFallTime
public float getFallTime()- Returns:
- the fallTime
-
setFallTime
public void setFallTime(float fallTime) - Parameters:
fallTime
- the fallTime to set
-
getLastFallSpeed
public float getLastFallSpeed()- Returns:
- the lastFallSpeed
-
setLastFallSpeed
public void setLastFallSpeed(float lastFallSpeed) - Parameters:
lastFallSpeed
- the lastFallSpeed to set
-
isbFalling
public boolean isbFalling()- Returns:
- the bFalling
-
setbFalling
public void setbFalling(boolean bFalling) - Parameters:
bFalling
- the bFalling to set
-
getCurrentBuilding
- Overrides:
getCurrentBuilding
in classIsoMovingObject
-
getCurrentBuildingDef
-
getCurrentRoomDef
-
getTorchStrength
public float getTorchStrength() -
OnAnimEvent
- Specified by:
OnAnimEvent
in interfaceIAnimEventCallback
-
getHammerSoundMod
public float getHammerSoundMod()- Specified by:
getHammerSoundMod
in interfaceILuaGameCharacter
-
getWeldingSoundMod
public float getWeldingSoundMod()- Specified by:
getWeldingSoundMod
in interfaceILuaGameCharacter
-
getBarricadeTimeMod
public float getBarricadeTimeMod() -
getMetalBarricadeStrengthMod
public float getMetalBarricadeStrengthMod() -
getBarricadeStrengthMod
public float getBarricadeStrengthMod() -
getSneakSpotMod
public float getSneakSpotMod() -
getNimbleMod
public float getNimbleMod() -
getFatigueMod
public float getFatigueMod()- Specified by:
getFatigueMod
in interfaceILuaGameCharacterHealth
-
getLightfootMod
public float getLightfootMod() -
getPacingMod
public float getPacingMod() -
getHyperthermiaMod
public float getHyperthermiaMod() -
getHittingMod
public float getHittingMod() -
getShovingMod
public float getShovingMod() -
getRecoveryMod
public float getRecoveryMod() -
getWeightMod
public float getWeightMod() -
getHitChancesMod
public int getHitChancesMod() -
getSprintMod
public float getSprintMod() -
getPerkLevel
Return the current lvl of a perk (skill)- Specified by:
getPerkLevel
in interfaceILuaGameCharacter
- Parameters:
perks
-- Returns:
-
setPerkLevelDebug
- Specified by:
setPerkLevelDebug
in interfaceILuaGameCharacter
-
LoseLevel
- Specified by:
LoseLevel
in interfaceILuaGameCharacter
-
LevelPerk
Level up a perk (max lvl 5)- Specified by:
LevelPerk
in interfaceILuaGameCharacter
- Parameters:
perk
- the perk to lvl upremovePick
- did we remove a skill pts ? (for example passiv skill automatically lvl up, without consuming skill pts)
-
LevelPerk
Level up a perk (max lvl 5)- Specified by:
LevelPerk
in interfaceILuaGameCharacter
- Parameters:
perk
- the perk to lvl up (a skill points is removed)
-
level0
-
getLastKnownLocationOf
-
ReadLiterature
Used when you read a book, magazine or newspaper- Specified by:
ReadLiterature
in interfaceILuaGameCharacter
- Parameters:
literature
- the book to read
-
OnDeath
public void OnDeath() -
splatBloodFloorBig
public void splatBloodFloorBig() -
splatBloodFloor
public void splatBloodFloor() -
getThreatLevel
public int getThreatLevel() -
isDead
public boolean isDead() -
isAlive
public boolean isAlive() -
Seen
-
CanSee
-
getLowDangerInVicinity
-
Anger
public void Anger(int amount) -
hasEquipped
- Specified by:
hasEquipped
in interfaceILuaGameCharacter
-
hasEquippedTag
- Specified by:
hasEquippedTag
in interfaceILuaGameCharacter
-
setDir
- Specified by:
setDir
in interfaceILuaGameCharacter
- Overrides:
setDir
in classIsoObject
- Parameters:
directions
- the dir to set
-
Callout
public void Callout(boolean doAnim) -
Callout
public void Callout()- Specified by:
Callout
in interfaceILuaGameCharacter
-
load
- Overrides:
load
in classIsoMovingObject
- Throws:
IOException
-
save
- Overrides:
save
in classIsoMovingObject
- Throws:
IOException
-
getChatElement
-
StartAction
- Specified by:
StartAction
in interfaceILuaGameCharacter
-
QueueAction
-
StopAllActionQueue
public void StopAllActionQueue()- Specified by:
StopAllActionQueue
in interfaceILuaGameCharacter
-
StopAllActionQueueRunning
public void StopAllActionQueueRunning() -
StopAllActionQueueAiming
public void StopAllActionQueueAiming() -
StopAllActionQueueWalking
public void StopAllActionQueueWalking() -
GetAnimSetName
- Specified by:
GetAnimSetName
in interfaceIAnimatable
-
SleepingTablet
public void SleepingTablet(float SleepingTabletDelta) -
BetaBlockers
public void BetaBlockers(float delta) -
BetaAntiDepress
public void BetaAntiDepress(float delta) -
PainMeds
public void PainMeds(float delta) -
initSpritePartsEmpty
public void initSpritePartsEmpty()- Specified by:
initSpritePartsEmpty
in interfaceILuaGameCharacter
-
InitSpriteParts
-
HasTrait
- Specified by:
HasTrait
in interfaceILuaGameCharacter
-
ApplyInBedOffset
public void ApplyInBedOffset(boolean apply) -
Dressup
- Specified by:
Dressup
in interfaceILuaGameCharacterClothing
-
PlayAnim
- Specified by:
PlayAnim
in interfaceILuaGameCharacter
-
PlayAnimWithSpeed
- Specified by:
PlayAnimWithSpeed
in interfaceILuaGameCharacter
-
PlayAnimUnlooped
- Specified by:
PlayAnimUnlooped
in interfaceILuaGameCharacter
-
DirectionFromVector
-
DoFootstepSound
-
DoFootstepSound
public void DoFootstepSound(float volume) -
Eat
- Specified by:
Eat
in interfaceILuaGameCharacterHealth
-
Eat
- Specified by:
Eat
in interfaceILuaGameCharacterHealth
-
FireCheck
public void FireCheck() -
getPrimaryHandType
-
getGlobalMovementMod
public float getGlobalMovementMod(boolean bDoNoises) - Overrides:
getGlobalMovementMod
in classIsoMovingObject
-
getMoveSpeed
public float getMoveSpeed() -
getSecondaryHandType
-
HasItem
-
changeState
- Specified by:
changeState
in interfaceILuaGameCharacter
-
getCurrentState
- Specified by:
getCurrentState
in interfaceILuaGameCharacter
-
isCurrentState
- Specified by:
isCurrentState
in interfaceILuaGameCharacter
-
getStateMachineParams
-
setStateMachineLocked
public void setStateMachineLocked(boolean val) -
Hit
public float Hit(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta) - Specified by:
Hit
in interfaceILuaGameCharacterDamage
- Overrides:
Hit
in classIsoMovingObject
-
Hit
public float Hit(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta, boolean bRemote) - Specified by:
Hit
in interfaceILuaGameCharacterDamage
-
processHitDamage
public float processHitDamage(HandWeapon weapon, IsoGameCharacter wielder, float damageSplit, boolean bIgnoreDamage, float modDelta) -
hitConsequences
public void hitConsequences(HandWeapon weapon, IsoGameCharacter wielder, boolean bIgnoreDamage, float damage, boolean bRemote) -
IsAttackRange
public boolean IsAttackRange(float x, float y, float z) -
IsAttackRange
public boolean IsAttackRange(HandWeapon we, IsoMovingObject obj, Vector3 bonePos, boolean extraRange) This use some prediction on the zombie, if he's lunging toward the player attacking it we gonna add more range to our weapon, to avoid playing the "miss" animation- Parameters:
we
-obj
-- Returns:
-
IsSpeaking
public boolean IsSpeaking()- Specified by:
IsSpeaking
in interfaceILuaGameCharacter
- Specified by:
IsSpeaking
in interfaceTalker
-
MoveForward
public void MoveForward(float dist, float x, float y, float soundDelta) -
pathToCharacter
-
pathToLocation
public void pathToLocation(int x, int y, int z) - Specified by:
pathToLocation
in interfaceILuaGameCharacter
-
pathToLocationF
public void pathToLocationF(float x, float y, float z) - Specified by:
pathToLocationF
in interfaceILuaGameCharacter
-
pathToSound
public void pathToSound(int x, int y, int z) -
CanAttack
public boolean CanAttack()- Specified by:
CanAttack
in interfaceILuaGameCharacter
-
ReduceHealthWhenBurning
public void ReduceHealthWhenBurning() -
DrawSneezeText
public void DrawSneezeText() -
getSpriteDef
- Specified by:
getSpriteDef
in interfaceILuaGameCharacter
-
render
-
renderServerGUI
public void renderServerGUI() -
isSeatedInVehicle
public boolean isSeatedInVehicle() -
renderObjectPicker
- Overrides:
renderObjectPicker
in classIsoObject
-
renderShadow
public void renderShadow(float x, float y, float z) -
checkUpdateModelTextures
public void checkUpdateModelTextures() -
isMaskClicked
public boolean isMaskClicked(int x, int y, boolean flip) - Overrides:
isMaskClicked
in classIsoObject
-
setHaloNote
- Specified by:
setHaloNote
in interfaceILuaGameCharacter
-
setHaloNote
- Specified by:
setHaloNote
in interfaceILuaGameCharacter
-
setHaloNote
- Specified by:
setHaloNote
in interfaceILuaGameCharacter
-
getHaloTimerCount
public float getHaloTimerCount() -
DoSneezeText
public void DoSneezeText() -
getSayLine
- Specified by:
getSayLine
in interfaceTalker
-
setSayLine
- Parameters:
sayLine
- the sayLine to set
-
getLastChatMessage
-
setLastChatMessage
-
getLastSpokenLine
-
setLastSpokenLine
-
SayDebug
-
SayDebug
-
getMaxChatLines
public int getMaxChatLines() -
Say
- Specified by:
Say
in interfaceILuaGameCharacter
- Specified by:
Say
in interfaceTalker
-
Say
public void Say(String line, float r, float g, float b, UIFont font, float baseRange, String customTag) - Specified by:
Say
in interfaceILuaGameCharacter
-
SayWhisper
-
SayShout
-
SayRadio
-
addLineChatElement
-
addLineChatElement
-
addLineChatElement
-
addLineChatElement
-
getUserNameHeight
public int getUserNameHeight() -
updateTextObjects
public void updateTextObjects() -
renderlast
public void renderlast()- Overrides:
renderlast
in classIsoMovingObject
-
drawDirectionLine
-
drawDebugTextBelow
-
getEquipedRadio
-
setDefaultState
public void setDefaultState() -
SetOnFire
public void SetOnFire() -
StopBurning
public void StopBurning()- Specified by:
StopBurning
in interfaceILuaGameCharacterDamage
-
sendStopBurning
public void sendStopBurning()- Specified by:
sendStopBurning
in interfaceILuaGameCharacterDamage
-
SpreadFireMP
public void SpreadFireMP() -
SpreadFire
public void SpreadFire() -
Throw
-
serverRemoveItemFromZombie
-
helmetFall
public boolean helmetFall(boolean hitHead) -
helmetFall
-
smashCarWindow
- Specified by:
smashCarWindow
in interfaceILuaGameCharacter
-
smashWindow
- Specified by:
smashWindow
in interfaceILuaGameCharacter
-
openWindow
- Specified by:
openWindow
in interfaceILuaGameCharacter
-
closeWindow
- Specified by:
closeWindow
in interfaceILuaGameCharacter
-
climbThroughWindow
- Specified by:
climbThroughWindow
in interfaceILuaGameCharacter
-
climbThroughWindow
- Specified by:
climbThroughWindow
in interfaceILuaGameCharacter
-
isClosingWindow
-
isClimbingThroughWindow
-
climbThroughWindowFrame
- Specified by:
climbThroughWindowFrame
in interfaceILuaGameCharacter
-
climbSheetRope
public void climbSheetRope()- Specified by:
climbSheetRope
in interfaceILuaGameCharacter
-
climbDownSheetRope
public void climbDownSheetRope()- Specified by:
climbDownSheetRope
in interfaceILuaGameCharacter
-
canClimbSheetRope
- Specified by:
canClimbSheetRope
in interfaceILuaGameCharacter
-
canClimbDownSheetRopeInCurrentSquare
public boolean canClimbDownSheetRopeInCurrentSquare()- Specified by:
canClimbDownSheetRopeInCurrentSquare
in interfaceILuaGameCharacter
-
canClimbDownSheetRope
- Specified by:
canClimbDownSheetRope
in interfaceILuaGameCharacter
-
climbThroughWindow
- Specified by:
climbThroughWindow
in interfaceILuaGameCharacter
-
climbThroughWindow
- Specified by:
climbThroughWindow
in interfaceILuaGameCharacter
-
climbOverFence
- Specified by:
climbOverFence
in interfaceILuaGameCharacter
-
isAboveTopOfStairs
public boolean isAboveTopOfStairs()- Specified by:
isAboveTopOfStairs
in interfaceILuaGameCharacter
-
preupdate
public void preupdate()- Overrides:
preupdate
in classIsoMovingObject
-
setTeleport
-
getTeleport
-
isTeleporting
public boolean isTeleporting() -
update
public void update()- Overrides:
update
in classIsoMovingObject
-
getHoursSurvived
public double getHoursSurvived()- Specified by:
getHoursSurvived
in interfaceILuaGameCharacter
-
calculateBaseSpeed
public float calculateBaseSpeed() -
updateSpeedModifiers
public void updateSpeedModifiers() -
DoFloorSplat
-
onMouseLeftClick
public boolean onMouseLeftClick(int x, int y) - Overrides:
onMouseLeftClick
in classIsoObject
-
faceLocation
public void faceLocation(float x, float y) -
faceLocationF
public void faceLocationF(float x, float y) -
isFacingLocation
public boolean isFacingLocation(float x, float y, float dot) -
isFacingObject
-
splatBlood
public void splatBlood(int dist, float alpha) -
isOutside
public boolean isOutside()- Specified by:
isOutside
in interfaceILuaGameCharacter
-
isFemale
public boolean isFemale()- Specified by:
isFemale
in interfaceILuaGameCharacter
-
setFemale
public void setFemale(boolean isFemale) - Specified by:
setFemale
in interfaceILuaGameCharacter
-
isZombie
public boolean isZombie()- Specified by:
isZombie
in interfaceILuaGameCharacter
- Overrides:
isZombie
in classIsoObject
-
getLastHitCount
public int getLastHitCount()- Specified by:
getLastHitCount
in interfaceILuaGameCharacterDamage
-
setLastHitCount
public void setLastHitCount(int hitCount) - Specified by:
setLastHitCount
in interfaceILuaGameCharacterDamage
-
getSurvivorKills
public int getSurvivorKills() -
setSurvivorKills
public void setSurvivorKills(int survivorKills) -
getAge
public int getAge() -
setAge
public void setAge(int age) -
exert
public void exert(float f) -
getPerkInfo
- Specified by:
getPerkInfo
in interfaceILuaGameCharacter
-
isEquipped
- Specified by:
isEquipped
in interfaceILuaGameCharacter
-
isEquippedClothing
- Specified by:
isEquippedClothing
in interfaceILuaGameCharacter
-
isAttachedItem
- Specified by:
isAttachedItem
in interfaceILuaGameCharacter
-
faceThisObject
- Specified by:
faceThisObject
in interfaceILuaGameCharacter
-
facePosition
public void facePosition(int x, int y) - Specified by:
facePosition
in interfaceILuaGameCharacter
-
faceThisObjectAlt
- Specified by:
faceThisObjectAlt
in interfaceILuaGameCharacter
-
setAnimated
public void setAnimated(boolean b) -
playHurtSound
public void playHurtSound() -
playDeadSound
public void playDeadSound() -
saveChange
- Overrides:
saveChange
in classIsoObject
-
loadChange
- Overrides:
loadChange
in classIsoObject
-
getAlreadyReadPages
- Specified by:
getAlreadyReadPages
in interfaceILuaGameCharacter
-
setAlreadyReadPages
- Specified by:
setAlreadyReadPages
in interfaceILuaGameCharacter
-
updateLightInfo
public void updateLightInfo() -
initLightInfo2
-
getLightInfo2
-
postupdate
public void postupdate()- Overrides:
postupdate
in classIsoMovingObject
-
shouldBeTurning
public boolean shouldBeTurning() -
shouldBeTurning90
public boolean shouldBeTurning90() -
shouldBeTurningAround
public boolean shouldBeTurningAround() -
hasPath
public boolean hasPath() -
isAnimationRecorderActive
public boolean isAnimationRecorderActive()- Specified by:
isAnimationRecorderActive
in interfaceIAnimatable
-
getAnimationPlayerRecorder
- Specified by:
getAnimationPlayerRecorder
in interfaceIAnimatable
-
getMeleeDelay
public float getMeleeDelay()- Specified by:
getMeleeDelay
in interfaceILuaGameCharacter
-
setMeleeDelay
public void setMeleeDelay(float delay) - Specified by:
setMeleeDelay
in interfaceILuaGameCharacter
-
getRecoilDelay
public float getRecoilDelay()- Specified by:
getRecoilDelay
in interfaceILuaGameCharacter
-
setRecoilDelay
public void setRecoilDelay(float recoilDelay) - Specified by:
setRecoilDelay
in interfaceILuaGameCharacter
-
getBeenMovingFor
public float getBeenMovingFor() -
setBeenMovingFor
public void setBeenMovingFor(float beenMovingFor) -
isForceShove
public boolean isForceShove() -
setForceShove
public void setForceShove(boolean forceShove) -
getClickSound
-
setClickSound
-
getMeleeCombatMod
public int getMeleeCombatMod() -
getWeaponLevel
public int getWeaponLevel() -
getMaintenanceMod
public int getMaintenanceMod()- Specified by:
getMaintenanceMod
in interfaceILuaGameCharacter
-
getVehicle
- Specified by:
getVehicle
in interfaceILuaGameCharacter
-
setVehicle
- Specified by:
setVehicle
in interfaceILuaGameCharacter
-
isUnderVehicle
public boolean isUnderVehicle() -
isProne
public boolean isProne() -
isBeingSteppedOn
public boolean isBeingSteppedOn() -
getTemperature
public float getTemperature()- Specified by:
getTemperature
in interfaceILuaGameCharacterHealth
-
setTemperature
public void setTemperature(float t) - Specified by:
setTemperature
in interfaceILuaGameCharacterHealth
-
getReduceInfectionPower
public float getReduceInfectionPower()- Specified by:
getReduceInfectionPower
in interfaceILuaGameCharacterHealth
-
setReduceInfectionPower
public void setReduceInfectionPower(float reduceInfectionPower) - Specified by:
setReduceInfectionPower
in interfaceILuaGameCharacterHealth
-
getInventoryWeight
public float getInventoryWeight()- Specified by:
getInventoryWeight
in interfaceILuaGameCharacter
-
dropHandItems
public void dropHandItems() -
shouldBecomeZombieAfterDeath
public boolean shouldBecomeZombieAfterDeath() -
applyTraits
-
createKeyRing
public void createKeyRing() -
autoDrink
public void autoDrink() -
getWaterSource
-
getKnownRecipes
- Specified by:
getKnownRecipes
in interfaceILuaGameCharacter
-
isRecipeKnown
- Specified by:
isRecipeKnown
in interfaceILuaGameCharacter
-
isRecipeKnown
- Specified by:
isRecipeKnown
in interfaceILuaGameCharacter
-
learnRecipe
-
addKnownMediaLine
- Specified by:
addKnownMediaLine
in interfaceILuaGameCharacter
-
removeKnownMediaLine
- Specified by:
removeKnownMediaLine
in interfaceILuaGameCharacter
-
clearKnownMediaLines
public void clearKnownMediaLines()- Specified by:
clearKnownMediaLines
in interfaceILuaGameCharacter
-
isKnownMediaLine
- Specified by:
isKnownMediaLine
in interfaceILuaGameCharacter
-
isMoving
public boolean isMoving() -
isBehaviourMoving
public boolean isBehaviourMoving() -
isPlayerMoving
public boolean isPlayerMoving() -
setMoving
public void setMoving(boolean val) -
isAttacking
public boolean isAttacking() -
isZombieAttacking
public boolean isZombieAttacking() -
isZombieAttacking
-
compareMovePriority
-
playSound
- Specified by:
playSound
in interfaceILuaGameCharacter
-
playSoundLocal
- Specified by:
playSoundLocal
in interfaceILuaGameCharacter
-
stopOrTriggerSound
public void stopOrTriggerSound(long eventInstance) - Specified by:
stopOrTriggerSound
in interfaceILuaGameCharacter
-
addWorldSoundUnlessInvisible
public void addWorldSoundUnlessInvisible(int radius, int volume, boolean bStressHumans) - Specified by:
addWorldSoundUnlessInvisible
in interfaceILuaGameCharacter
-
isKnownPoison
- Specified by:
isKnownPoison
in interfaceILuaGameCharacter
-
getLastHourSleeped
public int getLastHourSleeped()- Specified by:
getLastHourSleeped
in interfaceILuaGameCharacterHealth
-
setLastHourSleeped
public void setLastHourSleeped(int lastHourSleeped) - Specified by:
setLastHourSleeped
in interfaceILuaGameCharacterHealth
-
setTimeOfSleep
public void setTimeOfSleep(float timeOfSleep) - Specified by:
setTimeOfSleep
in interfaceILuaGameCharacterHealth
-
setDelayToSleep
public void setDelayToSleep(float delay) -
getBedType
- Specified by:
getBedType
in interfaceILuaGameCharacter
-
setBedType
- Specified by:
setBedType
in interfaceILuaGameCharacter
-
enterVehicle
-
Hit
public float Hit(BaseVehicle vehicle, float speed, boolean isHitFromBehind, float hitDirX, float hitDirY) - Specified by:
Hit
in interfaceILuaGameCharacterDamage
-
getPath2
- Specified by:
getPath2
in interfaceILuaGameCharacter
-
setPath2
- Specified by:
setPath2
in interfaceILuaGameCharacter
-
getPathFindBehavior2
- Specified by:
getPathFindBehavior2
in interfaceILuaGameCharacter
-
getMapKnowledge
-
getBed
- Specified by:
getBed
in interfaceILuaGameCharacter
-
setBed
- Specified by:
setBed
in interfaceILuaGameCharacter
-
avoidDamage
public boolean avoidDamage() -
setAvoidDamage
public void setAvoidDamage(boolean avoid) -
isReading
public boolean isReading()- Specified by:
isReading
in interfaceILuaGameCharacter
-
setReading
public void setReading(boolean isReading) - Specified by:
setReading
in interfaceILuaGameCharacter
-
getTimeSinceLastSmoke
public float getTimeSinceLastSmoke()- Specified by:
getTimeSinceLastSmoke
in interfaceILuaGameCharacter
-
setTimeSinceLastSmoke
public void setTimeSinceLastSmoke(float timeSinceLastSmoke) - Specified by:
setTimeSinceLastSmoke
in interfaceILuaGameCharacter
-
isInvisible
public boolean isInvisible()- Specified by:
isInvisible
in interfaceILuaGameCharacter
-
setInvisible
public void setInvisible(boolean b) - Specified by:
setInvisible
in interfaceILuaGameCharacter
-
isDriving
public boolean isDriving()- Specified by:
isDriving
in interfaceILuaGameCharacter
-
isInARoom
public boolean isInARoom()- Specified by:
isInARoom
in interfaceILuaGameCharacter
-
isGodMod
public boolean isGodMod()- Specified by:
isGodMod
in interfaceILuaGameCharacter
-
setGodMod
public void setGodMod(boolean b) - Specified by:
setGodMod
in interfaceILuaGameCharacter
-
isUnlimitedCarry
public boolean isUnlimitedCarry()- Specified by:
isUnlimitedCarry
in interfaceILuaGameCharacter
-
setUnlimitedCarry
public void setUnlimitedCarry(boolean unlimitedCarry) - Specified by:
setUnlimitedCarry
in interfaceILuaGameCharacter
-
isBuildCheat
public boolean isBuildCheat()- Specified by:
isBuildCheat
in interfaceILuaGameCharacter
-
setBuildCheat
public void setBuildCheat(boolean buildCheat) - Specified by:
setBuildCheat
in interfaceILuaGameCharacter
-
isFarmingCheat
public boolean isFarmingCheat()- Specified by:
isFarmingCheat
in interfaceILuaGameCharacter
-
setFarmingCheat
public void setFarmingCheat(boolean b) - Specified by:
setFarmingCheat
in interfaceILuaGameCharacter
-
isHealthCheat
public boolean isHealthCheat()- Specified by:
isHealthCheat
in interfaceILuaGameCharacter
-
setHealthCheat
public void setHealthCheat(boolean healthCheat) - Specified by:
setHealthCheat
in interfaceILuaGameCharacter
-
isMechanicsCheat
public boolean isMechanicsCheat()- Specified by:
isMechanicsCheat
in interfaceILuaGameCharacter
-
setMechanicsCheat
public void setMechanicsCheat(boolean mechanicsCheat) - Specified by:
setMechanicsCheat
in interfaceILuaGameCharacter
-
isMovablesCheat
public boolean isMovablesCheat()- Specified by:
isMovablesCheat
in interfaceILuaGameCharacter
-
setMovablesCheat
public void setMovablesCheat(boolean b) - Specified by:
setMovablesCheat
in interfaceILuaGameCharacter
-
isTimedActionInstantCheat
public boolean isTimedActionInstantCheat()- Specified by:
isTimedActionInstantCheat
in interfaceILuaGameCharacter
-
setTimedActionInstantCheat
public void setTimedActionInstantCheat(boolean b) - Specified by:
setTimedActionInstantCheat
in interfaceILuaGameCharacter
-
isTimedActionInstant
public boolean isTimedActionInstant()- Specified by:
isTimedActionInstant
in interfaceILuaGameCharacter
-
isShowAdminTag
public boolean isShowAdminTag()- Specified by:
isShowAdminTag
in interfaceILuaGameCharacter
-
setShowAdminTag
public void setShowAdminTag(boolean showAdminTag) - Specified by:
setShowAdminTag
in interfaceILuaGameCharacter
-
getVariable
Description copied from interface:IAnimationVariableSource
Returns the specified variable slot. Or NULL if not found.- Specified by:
getVariable
in interfaceIAnimationVariableSource
-
getVariable
Description copied from interface:IAnimationVariableSource
Returns the specified variable slot. Or NULL if not found.- Specified by:
getVariable
in interfaceIAnimationVariableSource
-
getOrCreateVariable
Description copied from interface:IAnimationVariableMap
Returns the specified variable slot. Creates a new slot if not found.- Specified by:
getOrCreateVariable
in interfaceIAnimationVariableMap
-
setVariable
Description copied from interface:IAnimationVariableMap
Set the specified animation variable slot. Overwriting an existing slot if necessary.- Specified by:
setVariable
in interfaceIAnimationVariableMap
-
setVariable
- Specified by:
setVariable
in interfaceIAnimationVariableMap
-
setVariable
- Specified by:
setVariable
in interfaceIAnimationVariableMap
-
setVariable
- Specified by:
setVariable
in interfaceIAnimationVariableMap
-
setVariable
public void setVariable(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet) Strong-typed utility function. -
setVariable
public void setVariable(String key, boolean defaultVal, AnimationVariableSlotCallbackBool.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackBool.CallbackSetStrongTyped callbackSet) Strong-typed utility function. -
setVariable
public void setVariable(String key, String defaultVal, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet) Strong-typed utility function. -
setVariable
public void setVariable(String key, String defaultVal, AnimationVariableSlotCallbackString.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackString.CallbackSetStrongTyped callbackSet) Strong-typed utility function. -
setVariable
public void setVariable(String key, float defaultVal, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet) Strong-typed utility function. -
setVariable
public void setVariable(String key, float defaultVal, AnimationVariableSlotCallbackFloat.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackFloat.CallbackSetStrongTyped callbackSet) Strong-typed utility function. -
setVariable
public void setVariable(String key, int defaultVal, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet) Strong-typed utility function. -
setVariable
public void setVariable(String key, int defaultVal, AnimationVariableSlotCallbackInt.CallbackGetStrongTyped callbackGet, AnimationVariableSlotCallbackInt.CallbackSetStrongTyped callbackSet) Strong-typed utility function. -
clearVariable
- Specified by:
clearVariable
in interfaceIAnimationVariableMap
-
clearVariables
public void clearVariables()- Specified by:
clearVariables
in interfaceIAnimationVariableMap
-
getVariableString
Description copied from interface:IAnimationVariableSource
Returns the specified variable. Or an empty string "" if not found.- Specified by:
getVariableString
in interfaceIAnimationVariableSource
-
getVariableFloat
Description copied from interface:IAnimationVariableSource
Returns the specified variable, as a float. Attempts to convert the string variable to a float. If that fails, or if variable not found, returns the defaultValue- Specified by:
getVariableFloat
in interfaceIAnimationVariableSource
-
getVariableBoolean
Description copied from interface:IAnimationVariableSource
Returns the specified variable, as a boolean. Attempts to convert the string variable to a boolean. If that fails, or if variable not found, returns FALSE- Specified by:
getVariableBoolean
in interfaceIAnimationVariableSource
-
getVariableBoolean
Returns the specified variable, as a boolean. Attempts to convert the string variable to a boolean. If that fails, or if variable not found, returns defaultVal- Specified by:
getVariableBoolean
in interfaceIAnimationVariableSource
-
isVariable
Compares (ignoring case) the value of the specified variable. Returns TRUE if they match.- Specified by:
isVariable
in interfaceIAnimationVariableSource
-
containsVariable
- Specified by:
containsVariable
in interfaceIAnimationVariableSource
-
getGameVariables
Description copied from interface:IAnimationVariableSource
Returns all Game variables.- Specified by:
getGameVariables
in interfaceIAnimationVariableSource
-
startPlaybackGameVariables
-
endPlaybackGameVariables
-
playbackSetCurrentStateSnapshot
-
playbackRecordCurrentStateSnapshot
-
GetVariable
- Specified by:
GetVariable
in interfaceILuaVariableSource
-
SetVariable
- Specified by:
SetVariable
in interfaceILuaVariableSource
-
ClearVariable
- Specified by:
ClearVariable
in interfaceILuaVariableSource
-
actionStateChanged
- Specified by:
actionStateChanged
in interfaceIActionStateChanged
-
isFallOnFront
public boolean isFallOnFront() -
setFallOnFront
public void setFallOnFront(boolean fallOnFront) -
isHitFromBehind
public boolean isHitFromBehind() -
setHitFromBehind
public void setHitFromBehind(boolean hitFromBehind) -
reportEvent
- Specified by:
reportEvent
in interfaceILuaGameCharacter
-
StartTimedActionAnim
- Specified by:
StartTimedActionAnim
in interfaceILuaGameCharacter
-
StartTimedActionAnim
- Specified by:
StartTimedActionAnim
in interfaceILuaGameCharacter
-
StopTimedActionAnim
public void StopTimedActionAnim()- Specified by:
StopTimedActionAnim
in interfaceILuaGameCharacter
-
hasHitReaction
public boolean hasHitReaction() -
getHitReaction
-
setHitReaction
-
CacheEquipped
public void CacheEquipped() -
GetPrimaryEquippedCache
-
GetSecondaryEquippedCache
-
ClearEquippedCache
public void ClearEquippedCache() -
isBehind
-
resetEquippedHandsModels
public void resetEquippedHandsModels() -
getDebugMonitor
- Specified by:
getDebugMonitor
in interfaceILuaGameCharacter
-
setDebugMonitor
- Specified by:
setDebugMonitor
in interfaceILuaGameCharacter
-
isAimAtFloor
public boolean isAimAtFloor() -
setAimAtFloor
public void setAimAtFloor(boolean b) -
testDotSide
-
addBasicPatch
-
addHole
- Specified by:
addHole
in interfaceILuaGameCharacterDamage
-
addHole
-
addDirt
-
addBlood
- Specified by:
addBlood
in interfaceILuaGameCharacterDamage
-
getBodyPartClothingDefense
-
isBumped
public boolean isBumped()- Specified by:
isBumped
in interfaceILuaGameCharacterDamage
-
isBumpDone
public boolean isBumpDone() -
setBumpDone
public void setBumpDone(boolean val) -
isBumpFall
public boolean isBumpFall() -
setBumpFall
public void setBumpFall(boolean val) -
isBumpStaggered
public boolean isBumpStaggered() -
setBumpStaggered
public void setBumpStaggered(boolean val) -
getBumpType
- Specified by:
getBumpType
in interfaceILuaGameCharacterDamage
-
setBumpType
-
getBumpFallType
-
setBumpFallType
-
getBumpedChr
-
setBumpedChr
-
getLastBump
public long getLastBump() -
setLastBump
public void setLastBump(long lastBump) -
isSitOnGround
public boolean isSitOnGround() -
setSitOnGround
public void setSitOnGround(boolean sitOnGround) -
getUID
- Specified by:
getUID
in interfaceIAnimatable
-
isRunning
public boolean isRunning() -
setRunning
public void setRunning(boolean bRunning) -
isSprinting
public boolean isSprinting() -
setSprinting
public void setSprinting(boolean bSprinting) -
canSprint
public boolean canSprint() -
postUpdateModelTextures
public void postUpdateModelTextures() -
getTextureCreator
-
setTextureCreator
-
postUpdateEquippedTextures
public void postUpdateEquippedTextures() -
getReadyModelData
-
getIgnoreMovement
public boolean getIgnoreMovement() -
setIgnoreMovement
public void setIgnoreMovement(boolean ignoreMovement) -
isAutoWalk
public boolean isAutoWalk() -
setAutoWalk
public void setAutoWalk(boolean b) -
setAutoWalkDirection
-
getAutoWalkDirection
-
isSneaking
public boolean isSneaking() -
setSneaking
public void setSneaking(boolean bSneaking) -
getGameCharacterAIBrain
-
getMoveDelta
public float getMoveDelta() -
setMoveDelta
public void setMoveDelta(float moveDelta) -
getTurnDelta
public float getTurnDelta() -
setTurnDelta
public void setTurnDelta(float m_turnDelta) -
getChopTreeSpeed
public float getChopTreeSpeed() -
testDefense
Test if we're able to defend a zombie bite Can only happen if zombie is attacking from front Calcul include current weapon skills, fitness & strength- Parameters:
zomb
-
-
getSurroundingAttackingZombies
public int getSurroundingAttackingZombies() -
checkIsNearWall
public float checkIsNearWall() -
getBeenSprintingFor
public float getBeenSprintingFor() -
setBeenSprintingFor
public void setBeenSprintingFor(float beenSprintingFor) -
isHideWeaponModel
public boolean isHideWeaponModel() -
setHideWeaponModel
public void setHideWeaponModel(boolean hideWeaponModel) -
setIsAiming
public void setIsAiming(boolean aIsAiming) -
isAiming
public boolean isAiming()- Specified by:
isAiming
in interfaceILuaGameCharacter
-
resetBeardGrowingTime
public void resetBeardGrowingTime()- Specified by:
resetBeardGrowingTime
in interfaceILuaGameCharacter
-
resetHairGrowingTime
public void resetHairGrowingTime()- Specified by:
resetHairGrowingTime
in interfaceILuaGameCharacter
-
fallenOnKnees
public void fallenOnKnees() -
addVisualDamage
-
isCriticalHit
public boolean isCriticalHit() -
setCriticalHit
public void setCriticalHit(boolean isCrit) -
getRunSpeedModifier
public float getRunSpeedModifier() -
startMuzzleFlash
public void startMuzzleFlash() -
isMuzzleFlash
public boolean isMuzzleFlash() -
isNPC
public boolean isNPC() -
setNPC
public void setNPC(boolean newvalue) -
NPCSetRunning
public void NPCSetRunning(boolean newvalue) -
NPCGetRunning
public boolean NPCGetRunning() -
NPCSetJustMoved
public void NPCSetJustMoved(boolean newvalue) -
NPCSetAiming
public void NPCSetAiming(boolean isAiming) -
NPCGetAiming
public boolean NPCGetAiming() -
NPCSetAttack
public void NPCSetAttack(boolean newvalue) -
NPCSetMelee
public void NPCSetMelee(boolean newvalue) -
setMetabolicTarget
-
setMetabolicTarget
public void setMetabolicTarget(float target) -
getThirstMultiplier
public double getThirstMultiplier() -
getHungerMultiplier
public double getHungerMultiplier() -
getFatiqueMultiplier
public double getFatiqueMultiplier() -
getTimedActionTimeModifier
public float getTimedActionTimeModifier() -
addHoleFromZombieAttacks
-
getTotalBlood
public float getTotalBlood() -
attackFromWindowsLunge
-
DoSwingCollisionBoneCheck
-
isInvincible
public boolean isInvincible() -
setInvincible
public void setInvincible(boolean invincible) -
getNearVehicle
-
dropHeavyItems
public void dropHeavyItems() -
isHeavyItem
-
isCanShout
public boolean isCanShout() -
setCanShout
public void setCanShout(boolean canShout) -
isUnlimitedEndurance
public boolean isUnlimitedEndurance() -
setUnlimitedEndurance
public void setUnlimitedEndurance(boolean unlimitedEndurance) -
getActiveLightItems
-
getOrCreateSleepingEventData
-
playEmote
-
getAnimationStateName
-
getActionStateName
-
shouldWaitToStartTimedAction
public boolean shouldWaitToStartTimedAction() -
setPersistentOutfitID
public void setPersistentOutfitID(int outfitID) -
setPersistentOutfitID
public void setPersistentOutfitID(int outfitID, boolean init) -
getPersistentOutfitID
public int getPersistentOutfitID() -
isPersistentOutfitInit
public boolean isPersistentOutfitInit() -
isDoingActionThatCanBeCancelled
public boolean isDoingActionThatCanBeCancelled() -
isDoDeathSound
public boolean isDoDeathSound() -
setDoDeathSound
public void setDoDeathSound(boolean doDeathSound) -
updateEquippedRadioFreq
public void updateEquippedRadioFreq() -
getFMODParameters
- Specified by:
getFMODParameters
in interfacefmod.fmod.IFMODParameterUpdater
-
startEvent
- Specified by:
startEvent
in interfacefmod.fmod.IFMODParameterUpdater
-
updateEvent
- Specified by:
updateEvent
in interfacefmod.fmod.IFMODParameterUpdater
-
stopEvent
- Specified by:
stopEvent
in interfacefmod.fmod.IFMODParameterUpdater
-
playBloodSplatterSound
public void playBloodSplatterSound() -
setIgnoreAimingInput
public void setIgnoreAimingInput(boolean b) -
addBlood
public void addBlood(float speed) -
isKnockedDown
public boolean isKnockedDown() -
setKnockedDown
public void setKnockedDown(boolean bKnockedDown) -
writeInventory
-
readInventory
-
Kill
-
shouldDoInventory
public boolean shouldDoInventory() -
die
public void die() -
becomeCorpse
public void becomeCorpse() -
shouldBecomeCorpse
public boolean shouldBecomeCorpse() -
getHitReactionNetworkAI
-
getNetworkCharacterAI
-
isLocal
public boolean isLocal() -
isVehicleCollisionActive
-
doHitByVehicle
-
isSkipResolveCollision
public boolean isSkipResolveCollision() -
isAttackAnim
public boolean isAttackAnim() -
setAttackAnim
public void setAttackAnim(boolean attackAnim) -
getNextAnimationTranslationLength
-
calcHitDir
-
calcHitDir
-
getSafety
- Specified by:
getSafety
in interfaceILuaGameCharacter
-
setSafety
- Specified by:
setSafety
in interfaceILuaGameCharacter
-
burnCorpse
-