OpenBF1942-Plus
Refractor 1, rebuilt from scratch
Loading...
Searching...
No Matches
con Namespace Reference

Classes

class  Vfs
class  Con

Functions

 load_mod (game_dir, mod)
 load_level (vm, level, mode="conquest")
 main (argv)

Variables

tuple OBJECT_FILES = ("geometries.con", "network.con", "physics.con", "weapons.con", "effects.con", "objects.con", "object.con")

Detailed Description

CON script interpreter (BF1942). Stdlib only. Spec: docs/formats/con.md

Usage: con.py <BF1942_DIR> <mod> [level] [gamemode]
  Loads the mod (init.con, game init, all object folders) and optionally a level,
  then prints a summary. Example: con.py <BF1942_DIR> bf1942 Wake conquest

Function Documentation

◆ load_level()

con.load_level ( vm,
level,
mode = "conquest" )

◆ load_mod()

con.load_mod ( game_dir,
mod )
Mount the mod stack declared by Mods/<mod>/init.con and load game init + object templates.

◆ main()

con.main ( argv)

Variable Documentation

◆ OBJECT_FILES

tuple con.OBJECT_FILES = ("geometries.con", "network.con", "physics.con", "weapons.con", "effects.con", "objects.con", "object.con")