Tried to add a mine that spawns when super mole explodes but it would cause desync. Or it might have been particles. (Are particles synced??)
I just followed code snippet on wiki.
Code:
void SpawnMineMole(int x, int y, int teamz)
{
CMineParams MParams;
CShootDesc SDesc;
zero(&MParams);
zero(&SDesc);
MParams.Prefuse = 0; //time before ability to activate
MParams.Flags = 60; //flags of objects to react on
MParams.Bias = 0; //Y shift of explosion
MParams.Damage = 29; //damage
MParams.BlastPower = 200;
MParams.Fuse = 3000;
MParams.Radius = 100;
SDesc.Team = teamz;
SDesc.X = x;
SDesc.Y = y;
SDesc.SpX = 0; //speed
SDesc.SpY = 0;
local Mine = new CMine(Root->GetObject(25, 0), &MParams, &SDesc, false, 0);
}
Code:
CMissile::ExplodeAt...
SpawnMineMole(x,y, MagicMole->initdesc.Team);