# SpatialFear.SFPlayer

Spatial Fear
Name: SFPlayer
Description: SpatialFear implementation of general player behaviour.
Since the MOD is strongly based on these changes, this is
our workhorse class. Modify it wisely!
Author: Markus Nuebel

Extends:
Modifiers:
Source code

    SpatialFear.SFPlayer

%%

## Constants

%function_comment% | NO_ACCURACY | = | -1.0

## Variables

%function_comment% | input |  | byte | bDuck
%function_comment% |  |  | bool | bJumpPenaltyAdded
%function_comment% |  |  | bool | bRunPenaltyAdded
%function_comment% |  |  | bool | bShowVersionInfo
%function_comment% |  |  | bool | bStatInventory
%function_comment% |  |  | bool | bStatPlayer
%function_comment% |  |  | bool | bStatWeapon
%function_comment% |  |  | bool | bStrafePenaltyAdded
%function_comment% |  |  | sound | ClimbStep
%function_comment% |  |  | float | CollisionHeightCreep
%function_comment% |  |  | float | CollisionHeightCrouch
%function_comment% |  |  | float | Correction
%function_comment% |  |  | float | CreepSpeed
%function_comment% |  |  | float | CrouchSpeed
%function_comment% |  |  | float | fDiffCrouchCreep
%function_comment% |  |  | float | fDiffStandCreep
%function_comment% |  |  | float | fDiffStandCrouch
%function_comment% |  |  | float | fPenaltyModifier
%function_comment% |  |  | float | fSoundPitch
%function_comment% |  |  | float | JumpAccuracyPenalty
%function_comment% |  |  | SFMedStationMover | m_actNearestMedStation
%function_comment% |  |  | bool | m_bCannotDrown
%function_comment% | input |  | byte | m_bCreep
%function_comment% |  |  | bool | m_bDreamMode
%function_comment% |  |  | bool | m_bInventoryOpen
%function_comment% |  |  | bool | m_bIsCreeping
%function_comment% |  |  | bool | m_bIsJumping
%function_comment% |  |  | bool | m_bIsRunning
%function_comment% |  |  | bool | m_bIsStrafing
%function_comment% |  |  | bool | m_bLoadDialogOpened
%function_comment% |  |  | bool | m_bManualInput
%function_comment% |  |  | byte | m_bSavedCreep
%function_comment% |  |  | byte | m_bSavedDuck
%function_comment% |  |  | byte | m_bStandState
%function_comment% |  |  | byte | m_bUseKey
%function_comment% |  |  | bool | m_bViewScent
%function_comment% | travel |  | bool | m_bVisorUnitUpgrade
%function_comment% | travel |  | bool | m_bWeaponDescUpgrade
%function_comment% |  |  | bool | m_bWeaponSelectOpen
%function_comment% |  |  | float | m_fAccelRate
%function_comment% |  |  | float | m_fAirSpeedOrg
%function_comment% |  |  | float | m_fCurrentSpeedModification
%function_comment% |  |  | float | m_fFootstepVolume
%function_comment% |  |  | float | m_fFrobTime
%function_comment% |  |  | float | m_fGroundSpeedOrg
%function_comment% |  |  | float | m_fInitialPrePivotZ
%function_comment% |  |  | float | m_fLastPheromoneSpawn
%function_comment% |  |  | float | m_fPenaltyUpgrade
%function_comment% |  |  | float | m_fWaterSpeedOrg
%function_comment% |  |  | SFCommDetail | m_listCommunications
%function_comment% |  |  | int | m_nLastSaveSlot
%function_comment% |  |  | int | m_nSafeFallDamage
%function_comment% |  |  | int | m_nSafeFallKill
%function_comment% |  |  | int | m_nXWipePos
%function_comment% |  |  | Weapon | m_oCreepPendingWeapon
%function_comment% | travel |  | SFFlashlight | m_oFlashlight
%function_comment% | travel |  | SFGoaltable | m_oGoals
%function_comment% |  |  | Weapon | m_oNullWeaponRestore
%function_comment% |  |  | SFCommunication | m_oScoutBotComm
%function_comment% | travel |  | SFDamageProtection | m_oSmartVest
%function_comment% |  |  | EScreenEffect | m_screenEffect
%function_comment% |  |  | float | NormalSpeed
%function_comment% |  |  | int | nPenaltyCount
%function_comment% |  |  | int | nShowVersionTime
%function_comment% |  |  | SFWeapon | oModifiedWeapon
%function_comment% |  |  | Pawn | pawnCreatureMonitor
%function_comment% |  |  | EPlayerState | PlayerState
%function_comment% | transient |  | UWindowRootWindow | Root
%function_comment% |  |  | float | RunAccuracyPenalty
%function_comment% |  |  | float | SafeFall_Damage
%function_comment% |  |  | float | SafeFall_Kill
%function_comment% |  |  | Decoration | ScoutBot
%function_comment% |  |  | EPlayerState | StartingPlayerState
%function_comment% |  |  | float | StrafeAccuracyPenalty
%function_comment% |  |  | string | strSFVersion
%function_comment% |  |  | UWindowMessageBox | winConfirmLoad

## Enums

%function_comment% | EPlayerState |  | STATE_UNDEF, STATE_Crouch, STATE_Creep, STATE_Climb, STATE_Swim, STATE_Normal,
%function_comment% | EScreenEffect |  | EFFECT_NONE, EFFECT_LR_WIPE

## Functions

|  |  | addCommunication (SFCommunication oComm)
|  |  | addNewCommunication (SFCommunication oComm)
|  |  | AdjustAccuracy ()
|  | bool | AdjustCollisionStuff (EPlayerState state)
|  |  | AdjustWeaponStuff (EPlayerState state)
| PlayerChat |  | AltFire (optional float F)
| PlayerChat |  | AnimEnd ()
| Climbing |  | AnimEnd ()
| PlayerWalking |  | AnimEnd ()
| Scouting |  | AnimEnd ()
|  |  | Attach (Actor Other)
|  |  | autoLoadGame ()
|  |  | autoSaveGame ()
|  |  | BeginPlay ()
| FeigningDeath |  | BeginState ()
| PlayerWalking |  | BeginState ()
| PlayerChat |  | BeginState ()
| Dying |  | BeginState ()
| Climbing |  | BeginState ()
| Scouting |  | BeginState ()
|  |  | Bump (Actor Other)
|  | bool | CanAcceptScoutBotLinkup ()
|  |  | CancelComm ()
|  |  | ChangedWeapon ()
|  |  | checkActorCreations ()
|  | bool | CheckPenalty (bool bMoveState, bool bPenaltyAdded, float fPenalty, string strPenaltyName)
|  | bool | CheckStandUp (float fDiff)
|  |  | ClientMessage (coerce string S, optional Name Type, optional bool bBeep)
|  |  | Climb (Bool B)
|  |  | ClimbStepping ()
|  |  | ClimbZoneEntered (float fLadderSpeedAcceleration)
|  |  | ClimbZoneLeaving (float fLadderSpeedAcceleration)
|  |  | Creeping ()
|  |  | Detach (Actor o)
| PlayerWalking |  | Dodge (vector">eDodgeDir DodgeMove)
|  |  | DoJump (optional float F)
|  |  | DropDecoration ()
| PlayerWalking |  | EndState ()
| Scouting |  | EndState ()
| PlayerChat |  | EndState ()
|  |  | Expired ()
| PlayerWalking |  | FeignDeath ()
|  |  | Fire (optional float F)
| Dying |  | Fire (optional float F)
| PlayerChat |  | Fire (optional float F)
|  |  | FireCustomEvent (actor Other, Pawn Instigator, name nameEvt)
|  |  | FootStepping ()
|  |  | GainedChild (Actor Other)
|  | float | getAngle (vector vecFirst, vector vecSecond)
|  | string | getPlayerState ()
|  | string | getStartingPlayerState ()
|  |  | GrabDecoration ()
|  |  | HeadZoneChange (ZoneInfo newHeadZone)
|  |  | HitWall (vector HitNormal, actor HitWall)
|  |  | increasePenalty (float fUpgrade)
|  | bool | isAlive ()
| PlayerChat |  | Jump (optional float F)
|  |  | loadGame (int nNumber)
|  |  | NextItem ()
|  |  | NextWeapon ()
|  |  | PassivItem ()
|  |  | playCommunication (SFCommunication oComm)
|  |  | PlayCreeping ()
|  |  | PlayDeathHit (float Damage, vector HitLocation, name damageType, vector Momentum)
|  |  | PlayDyingSound ()
| Dying |  | PlayerCalcView (out actor ViewActor, out vector CameraLocation, out rotator CameraRotation)
|  |  | PlayerInput (float DeltaTime)
| PlayerChat |  | PlayerInput (float DeltaTime)
Forcing MouseSensitivity to be 1.0 during calculating input stuff. ? | Scouting |  | PlayerInput (float DeltaTime)
| Scouting |  | PlayerMove (float DeltaTime)
| Climbing |  | PlayerMove (float DeltaTime)
| PlayerChat |  | PlayerMove (float DeltaTime)
| Scouting |  | PlayerTick (float DeltaTime)
| PlayerChat |  | PlayerTick (float DeltaTime)
| PlayerWalking |  | PlayerTick (float DeltaTime)
| Dying |  | PlayerTick (float deltaTime)
| Climbing |  | PlayerTick (float DeltaTime)
|  |  | PlayKneel ()
|  |  | PlayTakeHitSound (int damage, name damageType, int Mult)
| PlayerChat |  | PlayWaiting ()
|  |  | Possess ()
|  |  | PostBeginPlay ()
|  |  | PostRender (canvas C)
|  |  | PreBeginPlay ()
|  |  | PrepareCanvas (out canvas C)
|  |  | PrepareCanvasStat (out canvas C)
|  |  | PrevItem ()
|  |  | PrevWeapon ()
| Climbing |  | ProcessMove (float DeltaTime, vector NewAccel, vector">eDodgeDir DodgeMove, rotator DeltaRot)
| PlayerChat |  | ProcessMove (float DeltaTime, vector NewAccel, vector">eDodgeDir DodgeMove, rotator DeltaRot)
| PlayerWalking |  | ProcessMove (float DeltaTime, vector NewAccel, vector">eDodgeDir DodgeMove, rotator DeltaRot)
|  |  | putDownNullGun ()
|  |  | raiseNullGun ()
|  |  | RenderCreatureInfo (Canvas C, float fPosY)
|  | float | RenderInventoryData (canvas C, float fPosY)
|  |  | renderMedStationContact (Canvas C)
|  | float | RenderPlayerData (canvas C, float fPosY)
|  |  | RenderScreenEffect (canvas C)
|  |  | RenderVersionInfo (canvas C)
|  | float | RenderWeaponData (canvas C, float fPosY)
|  |  | ResetInput ()
|  |  | ResetManualInput ()
|  |  | resetPenalties ()
|  |  | resetScreenEffect ()
|  |  | RestoreInput ()
|  |  | saveGame (int nNumber)
|  |  | SaveInput ()
| PlayerWalking |  | ServerFeignDeath ()
|  |  | SetCreepInput ()
|  |  | SetCrouchInput ()
|  |  | setLRWipe ()
|  |  | SetNormalInput ()
|  |  | SFAccuracy (name Type, float fAccuracy)
|  |  | SFCheckInv ()
|  |  | sfClientError (string strMessage)
|  |  | sfClientWarning (string strMessage)
|  |  | SFCreepHeight (float fValue)
|  |  | SFCrouchHeight (float fValue)
|  |  | SFEnableHUD (name Type)
|  |  | SFFootstepVolume (float fValue)
|  |  | SFHealth (int nHealth)
|  |  | SFJumpHeight (int nValue)
|  |  | SFLoadDialog ()
|  |  | SFLogLevel (int nLevel)
|  |  | SFPlayerSpeed (float fPercentage, optional bool bTrackModification)
|  |  | SFPrintGoals ()
|  |  | SFQuickLoad ()
|  |  | SFQuickSave ()
|  |  | SFResetGoal (int nIndex)
|  |  | SFS (string ClassName)
|  |  | SFSafeFallDamage (int nValue)
|  |  | SFSafeFallKill (int nValue)
|  |  | SFSaveDialog ()
|  |  | SFSetGoal (int nIndex)
|  |  | SFShowConvHistory ()
|  |  | SFStat (string strType)
|  |  | SFSummon (string ClassName)
|  |  | SFToggleFlashlight ()
|  |  | SFUseKeyRange (int nValue)
|  |  | SFVersion ()
|  |  | SFViewCreature (name nameClass)
|  |  | SFViewScents (int n)
|  |  | showHUD (bool bEnable)
|  |  | ShowLoadMenu ()
| Dying |  | ShowMainMenu ()
|  |  | SlipDecoration ()
|  |  | SoundPitch (float fPitch)
|  |  | Spawned ()
|  |  | SpeedZoneEntered (float fAcceleration)
|  |  | SpeedZoneLeaving (float fAcceleration)
| PlayerChat |  | Suicide ()
|  |  | sweat (float fDelta)
|  |  | SwitchToDefaultState ()
| Dying |  | TakeDamage (int Damage, Pawn instigatedBy, Vector hitlocation, Vector momentum, name damageType)
|  |  | TakeDamage (int Damage, Pawn instigatedBy, Vector hitlocation, Vector momentum, name damageType)
|  |  | TakeFallingDamage ()
|  |  | Timer ()
|  |  | TravelPostAccept ()
|  |  | UnPossess ()
|  |  | updateLRWipe ()
|  |  | UseKey ()
| Scouting |  | UseKey ()
|  |  | UseKeyTargetting ()
| PlayerChat |  | UseKeyTargetting ()
|  |  | ViewClass (class<actor> aClass, optional bool bQuiet)
| Climbing |  | ZoneChange (ZoneInfo NewZone)

## Default properties

    {
         JumpAccuracyPenalty=1.000000
         RunAccuracyPenalty=1.000000
         StrafeAccuracyPenalty=1.000000
         m_fPenaltyUpgrade=1.000000
         SafeFall_Damage=580.000000
         SafeFall_Kill=940.000000
         CollisionHeightCrouch=28.000000
         CollisionHeightCreep=21.000000
         nShowVersionTime=20
         NormalSpeed=0.800000
         CrouchSpeed=0.300000
         CreepSpeed=0.200000
         ClimbStep=Sound'SpatialFear.Female.FClimb1'
         m_fCurrentSpeedModification=1.000000
         strSFVersion="1.1.182"
         m_bIsRunning=True
         PlayerState=STATE_Normal
         m_fFootstepVolume=2.200000
         m_fLastPheromoneSpawn=-1.000000
         fSoundPitch=1.000000
         GroundSpeed=280.000000
         AirSpeed=280.000000
         AccelRate=1450.000000
         JumpZ=300.000000
         CollisionRadius=14.000000
    }

class file time: 12/7/2003 3:58:24 PM - creation time: 12/7/2003 4:03:41 PM
Created with UnCodeX