ok will try this tmr, now too tired already... needa catch some rest...
EDIT 1: first error during compilation of your swarmtools.sp:
PHP Code:
//// swarmtools.sp
// swarmtools.sp(153) : error 001: expected token: ")", but found "continue"
// swarmtools.sp(180) : error 001: expected token: ")", but found "continue"
yup, the whole plugin's working all right.. but is it possible to do like, for example , when the marine i originally control (marine id 2
is dead, the marine index is removed and becomes -1... but the resources that is tied to that marine is still around, and not removed... so can i tie another marine to the original resource index, so that it now retains the original dead marine's resources? in other words, can i spawn another marine entity, tie the marine entity to the original dead marine's entity, and it assumes the resources of the dead marine and is under my control once again?
EDIT 2: damn, i thought i succeeded, what i did was to make a command that i can use whenever my marine died, i spawned a marine entity, edited it's m_Commander to my client index, set my previous dead marine's resource index m_MarineEntity to the newly created marine, teleported it to the place where my previous marine first spawned, everything looks ok, my new marine inherited my previous marine's name, his hp... but the model looks a bit weird though, and also, i can't switch my control to it... hmmm... and also, when i took over another bot and used it to shoot the created marine, it crashed immediately... seems like there's some more other things to make... psychonic, you have any idea? on how to switch your control to the marine's?