-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Gaspar edited this page Jan 15, 2024
·
27 revisions
goldsrcmap is a Python library designed for parsing, manipulating, and generating GoldSrc Engine map files (.map).
-
entities
: List ofEntity
objects.
-
properties
: Dictionary containing properties of the entity. -
brushes
: List ofBrush
objects.
-
faces
: List ofFace
objects.
-
plane
:Plane
object. -
texture
:Texture
object.
-
plane
: Representation of the geometric plane. -
texture
:Texture
object.
-
name
: String representing the texture name. -
u_axis
:Vector3
object representing the texture axis. -
u_offset
: Float values for texture offset. -
v_axis
:Vector3
object representing the texture axis. -
v_offset
: Float values for texture offset. -
rotation
: Float value indicating texture rotation. -
u_scale
: Float values for texture scaling. -
v_scale
: Float values for texture scaling.
- Represents a point in the 3D space.
- Represents a 3D vector.
Currently, goldsrcmap is not available via pip. To use the library, download the required files from src
directory from the repository. Place them in your working directory, following this structure:
/Your/Directory/
/Your/Directory/format/
/Your/Directory/utils/
/Your/Directory/__init__.py
/Your/Directory/goldsrcmap.py
- Ensure that you have the required files in your working directory /Your/Directory/.
- Create the python file in /Your/Directory/
/Your/Directory/your_script.py
- Import goldsrcmap.py helper module:
# your_script.py
import goldsrcmap as gsm
# your code