Did I find the right examples for you? yes no

All Samples(20)  |  Call(15)  |  Derive(0)  |  Import(5)
An XYZ location given by 3 decimal values and printed without parens.

src/v/m/vmflib-HEAD/examples/koth_vmflib_example.py   vmflib(Download)
 
from vmflib import *
from vmflib.types import Vertex, Output, Origin
from vmflib.tools import Block
import vmflib.games.source as source
cp_prop = vmf.Entity('prop_dynamic')
cp_prop.targetname = "prop_cap_1"
cp_prop.origin = Origin()
cp_prop.properties['model'] = "models/props_gameplay/cap_point_base.mdl"
 

src/v/m/vmflib-0.1.1/vmflib/games/tf2.py   vmflib(Download)
 
from vmflib.vmf import Entity, Connections
from vmflib.types import Bool, Origin, Output
 
class GameRules(Entity):
    def __init__(self):
        Entity.__init__(self, "team_control_point_master")
        self.origin = Origin()
        self.targetname = "master_control_point"
 
    def __init__(self):
        Entity.__init__(self, "team_control_point")
        self.origin = Origin()
 
        self.point_default_owner = 0
    def __init__(self, size="medium", origin=(0, 0, 0)):
        if size not in ("small", "medium", "full"):
            raise Exception("Invalid HealthKit size!")
        Entity.__init__(self, "item_healthkit_%s" % size)
        self.origin = Origin(origin)
    def __init__(self, size="medium", origin=(0, 0, 0)):
        if size not in ("small", "medium", "full"):
            raise Exception("Invalid AmmoPack size!")
        Entity.__init__(self, "item_ammopack_%s" % size)
        self.origin = Origin(origin)

src/v/m/vmflib-HEAD/vmflib/games/tf2.py   vmflib(Download)
 
from vmflib.vmf import Entity, Connections
from vmflib.types import Bool, Origin, Output
 
class GameRules(Entity):
    def __init__(self):
        Entity.__init__(self, "team_control_point_master")
        self.origin = Origin()
        self.targetname = "master_control_point"
 
    def __init__(self):
        Entity.__init__(self, "team_control_point")
        self.origin = Origin()
 
        self.point_default_owner = 0
    def __init__(self, size="medium", origin=(0, 0, 0)):
        if size not in ("small", "medium", "full"):
            raise Exception("Invalid HealthKit size!")
        Entity.__init__(self, "item_healthkit_%s" % size)
        self.origin = Origin(origin)
    def __init__(self, size="medium", origin=(0, 0, 0)):
        if size not in ("small", "medium", "full"):
            raise Exception("Invalid AmmoPack size!")
        Entity.__init__(self, "item_ammopack_%s" % size)
        self.origin = Origin(origin)

src/v/m/vmflib-0.1.1/vmflib/games/source.py   vmflib(Download)
 
from vmflib.vmf import Entity
from vmflib.types import Origin
 
class LightEnvironment(Entity):
    def __init__(self):
        Entity.__init__(self, "light_environment")
        self.origin = Origin()
 
        self.pitch = 0
        self.angles = Origin()
    def __init__(self):
        Entity.__init__(self, "logic_auto")
        self.origin = Origin()
        self.spawnflags = 1
 

src/v/m/vmflib-HEAD/vmflib/games/source.py   vmflib(Download)
 
from vmflib.vmf import Entity
from vmflib.types import Origin
 
class LightEnvironment(Entity):
    def __init__(self):
        Entity.__init__(self, "light_environment")
        self.origin = Origin()
 
        self.pitch = 0
        self.angles = Origin()
    def __init__(self):
        Entity.__init__(self, "logic_auto")
        self.origin = Origin()
        self.spawnflags = 1