Author Topic: Standard player properties  (Read 806 times)

I'm making a playertype, but I don't know all the properties I'll need to change, and I'm not sure some of the playertypes I have on hand have all the playertype properties, is there any cohesive list of playertype properties?

Sorry for the confusing wording, i mean stuff like JumpSound   and jetEmitter and all those properties that you find in playertypes.

I think some of the ones that don't use the default player have all them, like Atlas.

I think some of the ones that don't use the default player have all them, like Atlas.
You sure about that? This playertype needs EVERYTHING, including sounds for entering and leaving water (for example) (it's a sort of a stealth playertype, making no sound except pain and death, and i'm trying to give it some sort of cloaking) and I think most (if not all) playertypes inherit that from the standard parent.

Code: [Select]
==>serverconnection.getcontrolobject().getdatablock().dump();
Member Fields:
  airControl = "0.1"
  boundingBox = "5 5 10.6"
  bubbleEmitTime = "0.1"
  cameraHorizontalOffset = "0"
  cameraMaxDist = "8"
  cameraMinDist = "0"
  cameraTilt = "0.261"
  cameraVerticalOffset = "0.75"
  canJet = "1"
  canRide = "1"
  className = "PlayerData"
  crouchBoundingBox = "5 5 4"
  decalOffset = "0.25"
  density = "0.7"
  destroyedLevel = "1"
  disabledLevel = "1"
  drag = "0.1"
  emap = "1"
  exitSplashSoundVelocity = "5"
  firstPersonOnly = "0"
  footPuffNumParts = "10"
  footPuffRadius = "0.25"
  footstepSplashHeight = "0.35"
  groundImpactMinSpeed = "10"
  groundImpactShakeAmp = "1 1 1"
  groundImpactShakeDuration = "0.8"
  groundImpactShakeFalloff = "10"
  groundImpactShakeFreq = "4 4 4"
  hardSplashSoundVelocity = "20"
  horizMaxSpeed = "68"
  horizResistFactor = "0.35"
  horizResistSpeed = "33"
  inheritEnergyFromMount = "0"
  isInvincible = "0"
  jetEnergyDrain = "0"
  jetGroundDistance = "3.98827"
  jumpDelay = "3"
  jumpEnergyDrain = "0"
  jumpForce = "1080"
  jumpSurfaceAngle = "80"
  mass = "90"
  maxBackwardCrouchSpeed = "2"
  maxBackwardSpeed = "4"
  maxDamage = "1"
  maxEnergy = "100"
  maxForwardCrouchSpeed = "3"
  maxForwardSpeed = "7"
  maxFreelookAngle = "3"
  maxJumpSpeed = "30"
  maxLookAngle = "1.5708"
  maxSideCrouchSpeed = "2"
  maxSideSpeed = "6"
  maxStepHeight = "1"
  maxTimeScale = "1.5"
  maxUnderwaterBackwardSpeed = "7.8"
  maxUnderwaterForwardSpeed = "8.4"
  maxUnderwaterSideSpeed = "7.8"
  mediumSplashSoundVelocity = "10"
  minImpactSpeed = "30"
  minJetEnergy = "0"
  minJumpEnergy = "0"
  minJumpSpeed = "20"
  minLookAngle = "-1.5708"
  minRunEnergy = "0"
  observeThroughObject = "0"
  pickupRadius = "1.25"
  rechargeRate = "0.8"
  renderFirstPerson = "0"
  renderWhenDestroyed = "1"
  repairRate = "0.0033"
  rideable = "0"
  runEnergyDrain = "0"
  runForce = "4320"
  runSurfaceAngle = "70"
  shapeFile = "base/data/shapes/player/m.dts"
  splashAngle = "67"
  splashFreqMod = "300"
  splashVelEpsilon = "0.6"
  splashVelocity = "4"
  thirdPersonOnly = "0"
  uiName = "Standard Player"
  upMaxSpeed = "80"
  upResistFactor = "0.3"
  upResistSpeed = "25"
  useEyePoint = "0"
Tagged Fields:
Methods:
  checkDeployPos() - (Transform xform)
  delete() - obj.delete()
  dump() - obj.dump()
  getClassName() - obj.getClassName()
  getDeployTransform() - (Point3F pos, Point3F normal)
  getGroup() - obj.getGroup()
  getId() - obj.getId()
  getName() - obj.getName()
  getTaggedField() - obj.getTaggedFieldCount(int idx)
  getType() - obj.getType()
  save() - obj.save(fileName, <selectedOnly>)
  schedule() - object.schedule(time, command, <arg1...argN>);
  setName() - obj.setName(newName)

Thanks up to a point, but I don't see the jetemitter or jumpsound things I mentioned in there :/

Thanks up to a point, but I don't see the jetemitter or jumpsound things I mentioned in there :/

Thats because those are different datablocks, not player properties.  Go figure out what those datablocks are and dump them just like I did.

Obj.dump();

...  Go figure out what those datablocks are ...

I'm trying to figure out how to do that right now, that's part of what I'm asking for help for :/

Go here: http://classes.cec.wustl.edu/~cse450/Torque_Quick_References.pdf
Then jump to page 103. The playerdata info begins halfway down the page.

Go here: http://classes.cec.wustl.edu/~cse450/Torque_Quick_References.pdf
Then jump to page 103. The playerdata info begins halfway down the page.
Thanks, that's almost everything. I will need the jet (and other blockland-specific) information if I don't have it all already (difficult because most built-from-scratch playertypes have no jets), though depending on what stuff I can get my hands on it may be good enough as-is.

You could look at Vehicle_Horse, that's what I did when I didn't know something and I think it has everything you need.

You could look at Vehicle_Horse, that's what I did when I didn't know something and I think it has everything you need.
Good point, I could try that.