Skip to content

five-on-it / packages/sim/src/world / SimRules

Interface: SimRules ​

Defined in: packages/sim/src/world.ts:97

The game's rules the simulation applies; free roam (no game) plays by FREE_ROAM.

Properties ​

dropMissionItems? ​

optional dropMissionItems?: boolean

Defined in: packages/sim/src/world.ts:111

Whether a character that dies drops the items a mission defined that it carried, where it fell (loadouts.ts): the game's rule, set in the server's world alone (a client's world never makes a pickup of its own).


fallDamage? ​

optional fallDamage?: boolean

Defined in: packages/sim/src/world.ts:113

Whether a long fall hurts and a very long one kills (character.ts's FALL); on unless a game says otherwise.


garages? ​

optional garages?: GaragePrices

Defined in: packages/sim/src/world.ts:105

What the garages charge, over the level's prices; the level's alone when absent.


ghostTicks ​

ghostTicks: number

Defined in: packages/sim/src/world.ts:103

Ticks a player stays a ghost after respawning: passing through cars and people, taking no harm (griefing.ts).


playerDamage ​

playerDamage: PlayerDamage

Defined in: packages/sim/src/world.ts:99

Whether players hurt each other (shots, blasts, a car running them down), and whether a player at the wheel can be carjacked.


safeZones ​

safeZones: readonly SafeZone[]

Defined in: packages/sim/src/world.ts:101

The game's safe zones: inside one no player hurts another and no car is carjacked (griefing.ts).


vehicleFire? ​

optional vehicleFire?: boolean

Defined in: packages/sim/src/world.ts:119

Whether a car brought low catches fire and blows up (fire.ts): the game's rule, set in the server's world alone (a client's world never lights or blows up a car of its own; it draws the fires the snapshots carry).