DamageModel.tscript 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. function DamageModel::onCreate(%this)
  2. {
  3. }
  4. function DamageModel::onDestroy(%this)
  5. {
  6. }
  7. //This is called when the server is initially set up by the game application
  8. function DamageModel::initServer(%this)
  9. {
  10. }
  11. //This is called when the server is created for an actual game/map to be played
  12. function DamageModel::onCreateGameServer(%this)
  13. {
  14. %this.registerDatablock("./scripts/managedData/managedParticleData");
  15. %this.registerDatablock("./scripts/managedData/managedParticleEmitterData");
  16. %this.queueExec("./scripts/server/utility");
  17. %this.queueExec("./scripts/server/radiusDamage");
  18. %this.queueExec("./scripts/server/projectile");
  19. %this.queueExec("./scripts/server/weapon");
  20. %this.queueExec("./scripts/server/shapeBase");
  21. %this.queueExec("./scripts/server/vehicle");
  22. %this.queueExec("./scripts/server/player");
  23. }
  24. //This is called when the server is shut down due to the game/map being exited
  25. function DamageModel::onDestroyGameServer(%this)
  26. {
  27. }
  28. //This is called when the client is initially set up by the game application
  29. function DamageModel::initClient(%this)
  30. {
  31. %this.queueExec("./guis/damageGuiOverlay.gui");
  32. %this.queueExec("./scripts/client/playGui");
  33. }
  34. //This is called when a client connects to a server
  35. function DamageModel::onCreateClientConnection(%this)
  36. {
  37. }
  38. //This is called when a client disconnects from a server
  39. function DamageModel::onDestroyClientConnection(%this)
  40. {
  41. }