mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Generic Damagemodel
included in root/data/ as a module so theres a generic folks can riff off of additionally, includes a physcs based damage option inspector exposed augment for velicity based collisions, as well as utilities for applying damage to the object a given thing is mounted to further. also fixes a lack of vehicles being able to use thier mvTriggerCount4 and 5 for the additional 2 mountpoints allowed
This commit is contained in:
parent
a996c09b04
commit
5cf54580e6
27 changed files with 1552 additions and 0 deletions
47
Templates/BaseGame/game/data/DamageModel/DamageModel.tscript
Normal file
47
Templates/BaseGame/game/data/DamageModel/DamageModel.tscript
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
function DamageModel::onCreate(%this)
|
||||
{
|
||||
}
|
||||
|
||||
function DamageModel::onDestroy(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//This is called when the server is initially set up by the game application
|
||||
function DamageModel::initServer(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//This is called when the server is created for an actual game/map to be played
|
||||
function DamageModel::onCreateGameServer(%this)
|
||||
{
|
||||
%this.registerDatablock("./scripts/managedData/managedParticleData");
|
||||
%this.registerDatablock("./scripts/managedData/managedParticleEmitterData");
|
||||
%this.queueExec("./scripts/server/utility");
|
||||
%this.queueExec("./scripts/server/radiusDamage");
|
||||
%this.queueExec("./scripts/server/projectile");
|
||||
%this.queueExec("./scripts/server/weapon");
|
||||
%this.queueExec("./scripts/server/shapeBase");
|
||||
%this.queueExec("./scripts/server/player");
|
||||
}
|
||||
|
||||
//This is called when the server is shut down due to the game/map being exited
|
||||
function DamageModel::onDestroyGameServer(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//This is called when the client is initially set up by the game application
|
||||
function DamageModel::initClient(%this)
|
||||
{
|
||||
%this.queueExec("./guis/damageGuiOverlay.gui");
|
||||
%this.queueExec("./scripts/client/playGui");
|
||||
}
|
||||
|
||||
//This is called when a client connects to a server
|
||||
function DamageModel::onCreateClientConnection(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//This is called when a client disconnects from a server
|
||||
function DamageModel::onDestroyClientConnection(%this)
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue