programming

entity 34

golfcart_00=new.inherit
{
inherit_prototype="jziotd/golfcart.ent","golfcart";

function configure()
inherit("jziotd/golfcart.ent","golfcart");
end,
}

function golfcart_00.configure(self)
self.
end

**** jziotd_data/golfcart.pop

golfcart=new.gbEntityDatabase
{
base=new.gbBoxGeom
{
size={1,1,1},

seat=new.gbBoxGeom
{
},
},

leftWheel=new.gbCylinderGeom()
{
radius=1,
thickness=0.5,
},

leftWheelPin=new.gbPin
{
geomA=golfcart.base.seat,
localPosA={0,0,0},
localDirUpA={0,1,0},
localDirLeftA={1,0,0},
geomB=golfcart.leftWheel,
localPosB={0,0,0},
localDirLeftB={1,0,0},
},

driveStick=new.uvtAnalogStick
{
centerRate=0.1,
description="throttle",
maxValue=+27,
minValue=-27,
negativeKeyCode="KEY_S",
negativeKeyRate="0.5",
positiveKeyCode="KEY_W",
positiveKeyRate="0.5",
overrides={"jziotd_data/golfcart.pop",golfcart.driveStick_overrides},
},

driveStick_overrides=
{
centerRate=0.1,
description="throttle",
maxValue=+27,
minValue=-27,
negativeKeyCode="KEY_S",
negativeKeyRate="0.5",
positiveKeyCode="KEY_W",
positiveKeyRate="0.5",
},

}