I believe i've found why the Firework Launcher doesn't work for most people, and so i've been trying to fix it, but have reached a bit of an impasse...
The console gives me this error when i exec it
==>exec("Add-Ons/Weapon_Firework_Launcher/Weapon_Firework_Launcher.cs");
Add-Ons/Weapon_Firework_Launcher/Weapon_Firework_Launcher.cs Line: 582 - Syntax error.
>>> Some error context, with ## on sides of error halt:
echo("initialPosition:"@%initPos);
echo("sourceObject:"@%obj);
echo("sourceSlot:"@%slot);
echo("client:"@%obj.client);
echo(%projectile);
%projectile.schedule(4000,MakeExplosion, %p, %projectile);
%projectile.schedule(1000,MakeExplosion, %p);
}##
##
function fireworklauncherProjectile::MakeExplosion2(%this, %obj, %projectile) {
if(isObject(%obj))
{
%pos = %obj.getPosition();
%p = new explosion() {
dataBlock = fireworklauncherExplosion;
position = %pos; };
>>> Error report complete.
Executing Add-Ons/Weapon_Firework_Launcher/Weapon_Firework_Launcher.cs.
Add-Ons/Weapon_Firework_Launcher/Weapon_Firework_Launcher.cs Line: 582 - Syntax error.
>>> Some error context, with ## on sides of error halt:
echo("initialPosition:"@%initPos);
echo("sourceObject:"@%obj);
echo("sourceSlot:"@%slot);
echo("client:"@%obj.client);
echo(%projectile);
%projectile.schedule(4000,MakeExplosion, %p, %projectile);
%projectile.schedule(1000,MakeExplosion, %p);
}##
##
function fireworklauncherProjectile::MakeExplosion2(%this, %obj, %projectile) {
if(isObject(%obj))
{
%pos = %obj.getPosition();
%p = new explosion() {
dataBlock = fireworklauncherExplosion;
position = %pos; };
>>> Error report complete.
Add-Ons/Weapon_Firework_Launcher/Weapon_Firework_Launcher.cs (0): Unable to find object: '' attempting to call function 'getMuzzlePoint'
Add-Ons/Weapon_Firework_Launcher/Weapon_Firework_Launcher.cs (0): Unable to find object: '' attempting to call function 'getMuzzleVector'
Add-Ons/Weapon_Firework_Launcher/Weapon_Firework_Launcher.cs (0): Unable to find object: '' attempting to call function 'getVelocity'
Add-Ons/Weapon_Firework_Launcher/Weapon_Firework_Launcher.cs (0): Unable to instantiate non-conobject class .
Set::add: Object "0" doesn't exist
Projectile Type:
dataBlock:
initialVelocity:0 0 0
initialPosition:
sourceObject:
sourceSlot:
client:
Add-Ons/Weapon_Firework_Launcher/Weapon_Firework_Launcher.cs (0): Unable to find object: '' attempting to call function 'schedule'
Add-Ons/Weapon_Firework_Launcher/Weapon_Firework_Launcher.cs (0): Unable to find object: '' attempting to call function 'schedule'
How do i fix this...? The Firework Launcher needs to do those MakeExplosion scripts so the projectiles can explode in mid-air :(
If i remember correctly, i got most of this script from the RTB 1.x FWRockets, so i guess there would be trouble with the scripts...
If you're wondering why the .cs is called Weapon_Firework_Launcher.cs, it's cause the server.cs has the script that requires the Rocket Launcher on so it can work