Not enough just to add some CMissile code. Missiles (zook, nades etc from CMissile class) need a launchdata and CDesc for launchning. CDesc contains information about place of shooting, owner (team, worm), speed, angle. ldata contains weapon name and throug it we can change all parameters about explosion delay, sprites, trails.. everything from SchemeWeapon editor. So to launch a CMissile u also need prepare information about the launch.
Code:
CShootDesc SDesc;
zero(&SDesc);
SDesc.Team = WormTeam;
SDesc.Worm = WormNumber;
SDesc.X = PositionX; //integer
SDesc.Y = PositionY; //integer
SDesc.SpX = 5; //power 5 ar X axiss (Right side)
SDesc.SpY = -17.0; //power 17 at Y axiss (UP).
SDesc.AddX = targetX; //integer, for homing weapon
SDesc.AddY = targetY; //integer, for homing weapon
SDesc.Delay = 5;
local ldata;
local weapon;
ldata = GetWeaponByName("Bazooka");
weapon = new CMissile(Root->GetObject(25, 0), &ldata->launch, &SDesc);
This code (if u change some variables to integer values) will launch CMissiles. In this case weapon will be bazooka.
Good luck.