BF2.US bf2-rsdeveloper wiki Parity Discord bf2.us
generated from the code

gameLogic

BF22142Heroes

122 commands. A game cell holds the argument types (and the return type after ->) that game registers; empty: the game does not have the command. Back to the console reference.

Scope badges
serveronly the server reads it: a mod on the server alone takes effect, players need nothingclientonly the game client reads it (drawing, sound, HUD): every player who should see it needs the modsharedthe server and every client read it: both need the same files, or the clients' view jumpsyesthe game has it; nobody has classified its scope yet
BF22142HeroesA game column holds that game's badge and the argument types its program registers; an empty cell means the game does not know the name. The Notes column gives the reason (how the scopes are worked out).
NameBF22142HeroesNotes
gameLogic.AddInvalidDropVehicleObjectyes std::string, boolmethod
gameLogic.becomeSquadLeaderyes bool -> boolyes bool -> boolyes bool -> boolmethod
gameLogic.betweenCdmRoundsDelayyes float, float, float, floatmethod
gameLogic.createObjectyes std::stringyes std::stringyes std::stringmethod
gameLogic.damageForBeingOutSideWorldyes float -> floatproperty
gameLogic.defaultLevelserver std::string -> std::stringproperty; BF2: only the dedicated server registers it; BF2: bf2-rs handles it on the server only (bf2-runtime, bf2-server)
gameLogic.defaultTimeToNextAIWaveserver float -> floatserver float -> floatserver float -> floatproperty; BF2: only the dedicated server registers it; BF2, 2142, Heroes: bf2-rs handles it on the server only (bf2-server)
gameLogic.enableVoHelpyes bool -> boolyes bool -> boolyes bool -> boolproperty
gameLogic.extraUAVVehicleFlightHeightyes float -> floatyes float -> floatyes float -> floatproperty
gameLogic.feslEnvironmentserver int -> intproperty; BF2: only the dedicated server registers it; BF2: bf2-rs handles it on the server only (bf2-server)
gameLogic.getAlphaFlashSpeedBothTeamsyes -> floatmethod
gameLogic.getAlphaFlashSpeedOneTeamyes -> floatmethod
gameLogic.getBeforeSpawnCameraDirectionserver -> Vec3method; BF2: only the dedicated server registers it; BF2: bf2-rs handles it on the server only (bf2-server)
gameLogic.getBeforeSpawnCameraPositionserver -> Vec3method; BF2: only the dedicated server registers it; BF2: bf2-rs handles it on the server only (bf2-server)
gameLogic.getDefaultNumberOfTicketsyes U32 -> U32yes U32 -> U32yes U32 -> U32method
gameLogic.getDefaultNumberOfTicketsExyes U32, U32 -> U32yes U32, U32 -> U32yes U32, U32 -> U32method
gameLogic.getForceTakeableFlagAtTicketsyes -> floatmethod
gameLogic.getLowTicketWarningAtTicketsyes -> floatmethod
gameLogic.getMinSpawnTimeModifierAttackersyes -> floatmethod
gameLogic.getMinSpawnTimeModifierDefendersyes -> floatmethod
gameLogic.getNumberOfTicketsserver U32 -> U32server U32 -> U32server U32 -> U32method; BF2: only the dedicated server registers it; BF2, 2142, Heroes: bf2-rs handles it on the server only (bfh-server)
gameLogic.getOverHeadCamDirAtDeathForTeamyes int -> Vec3method
gameLogic.getOverHeadCamDirAtEndOfRoundLoseTeamyes int -> Vec3method
gameLogic.getOverHeadCamDirAtEndOfRoundWinTeamyes int -> Vec3method
gameLogic.getOverHeadCamPosAtDeathForTeamyes int -> Vec3method
gameLogic.getOverHeadCamPosAtEndOfRoundLoseTeamyes int -> Vec3method
gameLogic.getOverHeadCamPosAtEndOfRoundWinTeamyes int -> Vec3method
gameLogic.getOverrideEndOfRoundDelayyes -> intmethod
gameLogic.getShowOverHeadCamWhenDeadAtTimeyes -> intmethod
gameLogic.getSpawnTimeModifierAttackersyes -> floatmethod
gameLogic.getSpawnTimeModifierDefendersyes -> floatmethod
gameLogic.getSpawnWaveTimeyes -> floatmethod
gameLogic.getStalemateLimityes -> floatmethod
gameLogic.getTeamDropVehicleyes int -> std::stringmethod
gameLogic.getTeamLanguageyes int -> std::stringyes int -> std::stringyes int -> std::stringmethod
gameLogic.getTeamNameyes int -> std::stringyes int -> std::stringyes int -> std::stringmethod
gameLogic.getTicketLossAtEndPerMinserver -> floatserver -> floatserver -> floatmethod; BF2: only the dedicated server registers it; BF2, 2142, Heroes: bf2-rs handles it on the server only (bf2-server)
gameLogic.getTicketLossPerMinyes U32 -> floatyes U32 -> floatyes U32 -> floatmethod
gameLogic.getTicketUpdateIntervalyes -> U32method
gameLogic.getTimeLimityes -> floatmethod
gameLogic.getTriggerEndAlarmyes -> floatmethod
gameLogic.getUseSpawnWaveAttackersyes -> boolmethod
gameLogic.getUseSpawnWaveDefendersyes -> boolmethod
gameLogic.getVehiclePrioAndMaxyes U32, U32, U32 -> U32method
gameLogic.giveDamageToPlayerserver std::string, floatmethod; Heroes: bf2-rs handles it on the server only (bfh-server)
gameLogic.hitIndicationThresholdserver float -> floatproperty; BF2: only the dedicated server registers it; BF2: bf2-rs handles it on the server only (bf2-server)
gameLogic.maximumLevelViewDistanceyes float -> floatyes float -> floatyes float -> floatproperty
gameLogic.messages.addEmoteTriggerserver std::stringserver std::stringmethod; 2142, Heroes: bf2-rs handles it on the server only (bf2-runtime)
gameLogic.messages.addHelpMessageyes std::string, std::string -> intyes std::string, std::string -> intyes std::string, std::string -> intmethod
gameLogic.messages.addMessageyes std::string -> intyes std::string -> intyes std::string -> intmethod
gameLogic.messages.addRadioFilteryes std::string, std::string -> intyes std::string, std::string -> intyes std::string, std::string -> intmethod
gameLogic.messages.addRadioVoiceyes std::string, std::string, std::string, std::string, int -> intyes std::string, std::string, std::string, std::string, int -> intyes std::string, std::string, std::string, std::string, int -> intmethod
gameLogic.messages.playHelpMessageyes std::string -> intmethod
gameLogic.messages.playRadioMessageyes int, std::string, std::string, std::string -> intmethod
gameLogic.messages.setVolumesyes float, floatyes float, floatyes float, floatmethod
gameLogic.noVehiclesOmityes std::stringmethod
gameLogic.orbitalBombardmentHeightserver float -> floatserver float -> floatproperty; 2142, Heroes: bf2-rs handles it on the server only (bf2-runtime)
gameLogic.outputPlayerStatsyes bool -> boolproperty
gameLogic.overrideTicketsPerPlayerserver int -> intproperty; Heroes: bf2-rs handles it on the server only (bfh-server)
gameLogic.printCameraCoordToConsoleyesmethod
gameLogic.radialLevelIndexyes int -> intproperty
gameLogic.refreshTriggerablesservermethod; BF2: only the dedicated server registers it; BF2: bf2-rs handles it on the server only (bf2-server)
gameLogic.remoteCommandyes int, int, int, int, int -> boolyes int, int, int, int, int -> boolyes int, int, int, int, int -> boolmethod
gameLogic.resetyesyesyesmethod
gameLogic.roundNrserver int -> intproperty; BF2: only the dedicated server registers it; BF2: bf2-rs handles it on the server only (bf2-server)
gameLogic.satelliteScanReloadTimeserver float -> floatserver float -> floatproperty; 2142, Heroes: bf2-rs handles it on the server only (bf2-runtime)
gameLogic.setAirMouseInvertedyes boolmethod
gameLogic.setAirMouseSensitivityserver float -> floatproperty; BF2: only the dedicated server registers it; BF2: bf2-rs handles it on the server only (bf2-server)
gameLogic.setAlphaFlashSpeedBothTeamsyes floatmethod
gameLogic.setAlphaFlashSpeedOneTeamyes floatmethod
gameLogic.setBeforeSpawnCamerayes Vec3, Vec3yes Vec3, Vec3yes Vec3, Vec3method
gameLogic.setDefaultNumberOfTicketsyes U32, U32yes U32, U32yes U32, U32method
gameLogic.setDefaultNumberOfTicketsExyes U32, U32, U32yes U32, U32, U32yes U32, U32, U32method
gameLogic.setDropVehicleDeviationRadiusyes int, intmethod
gameLogic.setDynamicVehicleSpawnAllowedyes world::VehicleType, intmethod
gameLogic.setDynamicVehicleSpawnExtensionyes world::VehicleType, std::stringmethod
gameLogic.setForceTakeableFlagAtTicketsyes floatmethod
gameLogic.setKityes int, KitType, std::string, std::stringyes int, KitType, std::string, std::string, std::stringyes int, KitType, std::string, std::string, std::stringmethod
gameLogic.setLowTicketWarningAtTicketsyes floatmethod
gameLogic.setMinSpawnTimeModifierAttackersyes floatmethod
gameLogic.setMinSpawnTimeModifierDefendersyes floatmethod
gameLogic.setNumberOfTicketsyes U32, U32yes U32, U32yes U32, U32method
gameLogic.setNumDropVehiclesForTeamyes int, intmethod
gameLogic.setOverheadCamAtDeathyes int, Vec3, Vec3method
gameLogic.setOverheadCamAtEndOfRoundLoseTeamyes int, Vec3, Vec3method
gameLogic.setOverheadCamAtEndOfRoundWinTeamyes int, Vec3, Vec3method
gameLogic.setOverrideEndOfRoundDelayyes intmethod
gameLogic.setOverrideTicketsyes U32, U32, U32method
gameLogic.setShowOverHeadCamWhenDeadAtTimeyes intmethod
gameLogic.setSpawnTimeModifierAttackersyes floatmethod
gameLogic.setSpawnTimeModifierDefendersyes floatmethod
gameLogic.setSpawnWaveTimeyes floatmethod
gameLogic.setStalemateLimityes floatmethod
gameLogic.setTeamDropVehicleyes int, std::stringmethod
gameLogic.setTeamFlagyes int, std::stringyes int, std::stringyes int, std::stringmethod
gameLogic.setTeamLanguageyes int, std::stringyes int, std::stringyes int, std::stringmethod
gameLogic.setTeamNameyes int, std::stringyes int, std::stringyes int, std::stringmethod
gameLogic.setTeamSpawnCamerayes int, Vec3, Vec3method
gameLogic.setTicketLossAtEndPerMinyes floatyes floatyes floatmethod
gameLogic.setTicketLossPerMinyes U32, floatyes U32, floatyes U32, floatmethod
gameLogic.setTicketUpdateIntervalyes U32method
gameLogic.setTimeLimityes floatmethod
gameLogic.setTriggerEndAlarmyes floatmethod
gameLogic.setUseSpawnWaveAttackersyes boolmethod
gameLogic.setUseSpawnWaveDefendersyes boolmethod
gameLogic.setValorPointsAwardedyes int, intmethod
gameLogic.setVehiclePrioAndMaxyes U32, U32, world::VehicleType, U32method
gameLogic.showAllNametagsAtSecondsLeftyes int -> intproperty
gameLogic.spawnAtCameraPositionyes bool -> boolyes bool -> boolyes bool -> boolproperty
gameLogic.spawnObjectSpeedyes float -> floatyes float -> floatyes float -> floatproperty
gameLogic.spawnPlayersserver bool -> boolproperty; BF2: only the dedicated server registers it; BF2: bf2-rs handles it on the server only (bf2-runtime)
gameLogic.supplyDropHeightyes float -> floatyes float -> floatyes float -> floatproperty
gameLogic.supplyDropNumSecsToLiveyes float -> floatyes float -> floatyes float -> floatproperty
gameLogic.teleportyesmethod
gameLogic.teleportCameraToyes Vec3method
gameLogic.teleportToyes Vec3method
gameLogic.timeAllowedOutSideWorldyes float -> floatproperty
gameLogic.timeToNextAIWaveyes float -> floatproperty
gameLogic.togglePauseserverserverservermethod; BF2: only the dedicated server registers it; BF2, 2142, Heroes: bf2-rs handles it on the server only (bf2-server, bfh-server)
gameLogic.uavReloadTimeserver float -> floatserver float -> floatproperty; 2142, Heroes: bf2-rs handles it on the server only (bf2-runtime)
gameLogic.useColdBreathyes bool -> boolyes bool -> boolproperty
gameLogic.vehicleDropHeightyes float -> floatproperty
Source: tools/devwiki/refs_console.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.