Author Topic: Changing max hp for a playertype  (Read 816 times)

I'm making (editing quake player) a playertype and I'd like to know what the variable for the players max hp is, and knowing how to find variables overall would be nice to know too.

Code: [Select]
maxDamage = 100;Is default.

Thanks. I can just put it anywhere, right?

knowing how to find variables overall would be nice to know too.
playerdata.dump();

playerdata.dump();
Where do I put this? The console doesn't recognize it.

findClientByName("paradon").player.dataBlock.dump();

or just

PlayerStandardArmor.dump();

Quote
Code: [Select]
  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)

or just

PlayerStandardArmor.dump();
oh my god this is so useful.

What's the difference between maxtools, maxitems and maxweapons?
I want to make my player have an inventory of 1.

oh my god this is so useful.
I prefer PlayerStandardArmor.save("config/player.cs");

I prefer PlayerStandardArmor.save("config/player.cs");
I don't get it.

--

Is there a list of every variable or whatever like the list of player actions you get from PlayerStandardArmor.dump();

Like, a list of "events" useable in code. (onCollide => player => anything - even though I'm pretty sure this isn't how it works :p)

I think scripts and stuff sound interesting and would like to play around but I can't unless I have something to work with.

I don't get it.

--

Is there a list of every variable or whatever like the list of player actions you get from PlayerStandardArmor.dump();

Like, a list of "events" useable in code. (onCollide => player => anything - even though I'm pretty sure this isn't how it works :p)

I think scripts and stuff sound interesting and would like to play around but I can't unless I have something to work with.
You can have almost any object in the game and .dump() tells you everything about it.
Demian just did the same thing as me except he saves it to a file
and yes oncollide and stuff is all script callbacks