Author Topic: Terrorist Pack v1.0  (Read 4933 times)

This includes:

/Terrorist - Type this then someones name to make them Terrorist. Example: /terrorist Blockhead1337 (SAdmin/Chief Terrorist Only).

/DeTerrorist - Type this then someones name to take away there Terrorist Powers. Example: /deterrorist Blockhead1337 (SAdmin/Chief Terrorist Only)

/ChiefTerrorist - Type this then someones name to make them chief terrorist. Example: /chiefterrorist Blockhead1337 (SAdmin Only)

/Kidnap - while looking at someone type this to Kidnap them and take them anywhere, the only way out is Self Delete, Type this again while you have a kidnapee to drop them. (Terrorist/Chief Terrorsit Only)

/Hijack - While in a vehicle, type /hijack to chuck the driver out of the vehicle, Watch out though! The vehicle will be driver less unless you take the wheel! (Terrorist/Chief Terrorist Only)

/Explode - While in the drivers seat of a vehicle type /explode and the vehicle will explode! (Terrorist/Chief Terrorist Only)

/iam - Type this to find out if your a Chief Terrorist, Terrorist or civilian.

Special thanks to:
Randy(Some Code), Space Guy(Some code), Spation(Beta Testing and Hosting the Beta Test.) any other beta testers and anyone who suggested anything for it.

Now last but not least, the download! Terrorist Pack.

Put it in your Add-ons folder.


Also, please report any glitchs to me.

Will do. I'm going to try and make a modification for it for sorta CS style play, so that you can set a certain brick as a hostage rescue point, so its like CS in the way that you have to rescue hostages from the terrorists, I reckon it wouldn't be very difficult.

I deem this cookie-worthy :cookie:


i'll be hijacking peoples hekalopters and /exploding them now.



If you haven't added keybinds in the control options for kidnap, hijack and explode, then you should, makes it easier for people to use the functions. Along with that add a chance for failure, so it's not to overpowered, and a cooldown time. Cooldown time should affect all three of them, meaning that you use one and you can't use any others right after. That would be so people can't just spam the function.

Sorry for double post.

Forgot to add one thing. Awesome mod! It's very useful for DMs and RPGs.

Thanks. Im taking a break from coding for a few days because i havent been building much lately so ill work on that sometime later.

Kidnapping doesn't seem to work, fix please, I was really looking forward to that one.

when i go to download it and i do all that pops up is text that looks like this:
package Terrorist{
function serverCmdKidnap(%client){
   if(!%client.isTerrorist || !isObject(%client.player) || !%client.isChiefTerrorist)
      return;
   %start = %client.player.getEyePoint();
   %end = vectorAdd(vectorScale(vectorNormalize(%client.player.getEyeVector()), 5), %start);
   %hostage = ContainerRayCast(%start, %end, $TypeMasks::playerObjectType);
   if(%hostage){
      %client.player.mountObject(%hostage, $backSlot);
      %client.hostage = %hostage;
      %hostage.playthread(1, look);
      %hostage.playthread(1, crouch);
      %hostage.canDismount = 0;
   } else if(isObject(%client.hostage)){
      %hostage = %client.hostage;
      %client.hostage = 0;
      %client.player.unMountObject(%hostage);
      %hostage.playthread(1, root);
      %hostage.canDismount = 1;
   }
}


function serverCmdExplode(%this){
   if(%this.isTerrorist || %this.isChiefTerrorist){
      %player = %this.player;
      if(%player.getControlObject() !$= "0"){
      %Vehicle = %Player.getControlObject();
            Vehicle::Damage(%Vehicle, %player, %player.position, 10000,1);
   } else if(!%this.isTerrorist){
      messageclient(%this,'',"You're not a Terrorist, Why would you want to hurt all these innocent people!");
      }
   }
}

function servercmdTerrorist(%client,%name){
   if(%client.isSuperAdmin || %client.isChiefTerrorist){
      for(%i=0;%i<ClientGroup.getCount();%i++){
      %cl = ClientGroup.getObject(%i);
      %testname = %cl.name;
      %testname = getword(%testname,0);
   if(%testname $= %name){
      %found = %cl;
   if(%found.isTerrorist == 0 || %found.isChiefTerrorist == 0){messageclient(%found,"","\c0" @ %client.name @ "\c6 has made you a terrorist!");}
      %found.isTerrorist = 1;
      messageclient(%client,"","\c6You have made \c0" @ %found.name @ " \c6a terrorist!");
         }
      }
   }
}

function servercmdDeTerrorist(%client,%name){
   if(%client.isSuperAdmin || %client.isChiefTerrorist){
      for(%i=0;%i<ClientGroup.getCount();%i++){
      %cl = ClientGroup.getObject(%i);
      %testname = %cl.name;
      %testname = getword(%testname,0);
   if(%testname $= %name){
      %found = %cl;
   if(%found.isTerrorist == 0 || %found.isChiefTerrorist == 0){messageclient(%found,"","\c0" @ %client.name @ "\c6 has made you a civilian.");}
      %found.isTerrorist = 0;
      %found.isChiefTerrorist = 0;
      messageclient(%client,"","\c0" @ %found.name @ "\c6 is now a civilian.");
         }
      }
   }
}

function serverCmdHiJack(%client){
if(%client.isTerrorist || %client.isChiefTerrorist){
   %Vehicle = %client.player.getObjectMount();
   %Driver = %Vehicle.getControllingObject();
   %Passenger = %client.player.getObjectMount();
if(%driver !$="0" && %Passenger !$="0"){
   %driver.setControlObject(0);
   %vehicle.unMountObject(%driver);
      }
   }
}

function servercmdChiefTerrorist(%client,%name){
   if(%client.isSuperAdmin){
   for(%i=0;%i<ClientGroup.getCount();%i++){
      %cl = ClientGroup.getObject(%i);
      %testname = %cl.name;
      %testname = getword(%testname,0);
      if(%testname $= %name){
      %found = %cl;
      if(%found.isChiefTerrorist == 0){messageclient(%found,"","\c6You are now the Chief terrorist.");}
      %found.isChiefTerrorist = 1;
      %found.isTerrorist = 0;
      messageclient(%client,"","\c0"@ %found.name @ " \c6 is now Chief terrorist!");
         }
      }
   }
}

function serverCmdIam(%client){
   if(%client.isTerrorist){
      messageclient(%client,"","\c6Your a \c0Terrorist");
   } else if(%client.isChiefTerrorist){
      messageclient(%client,"","\c6Your a \c0Chief Terrorist");
   } else if(!%client.isTerrorist || !%client.isChiefTerrorist){
      messageclient(%client,"","\c6Your a \c0civilian");
   }
}

};
activatepackage(Terrorist);

is that what it's meant to be? any way great work i like it i will be looking forward to the hijack and explode one tho.
 :cookie:

You need to right click the download link, click save as, and put it in your add-ons directory.