DamageModel.tscript 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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/player");
  22. }
  23. //This is called when the server is shut down due to the game/map being exited
  24. function DamageModel::onDestroyGameServer(%this)
  25. {
  26. }
  27. //This is called when the client is initially set up by the game application
  28. function DamageModel::initClient(%this)
  29. {
  30. %this.queueExec("./guis/damageGuiOverlay.gui");
  31. %this.queueExec("./scripts/client/playGui");
  32. }
  33. //This is called when a client connects to a server
  34. function DamageModel::onCreateClientConnection(%this)
  35. {
  36. }
  37. //This is called when a client disconnects from a server
  38. function DamageModel::onDestroyClientConnection(%this)
  39. {
  40. }