Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial MW3 Commands: enableweaponpickup, makeportableradar and makescrambler
#1
Hello

Another command tutorial, this is about some really cool commands I found while looking through gsc files. I am 100% sure that work like this, is pretty obvious and doesnt need testing, OMA

This first one, what it does is to dont let a player pick up weapons, in previous cods we needed to do a function to drop the current weapon so the player doesnt pickup weapons, now with this command is solved:

Code:
self disableWeaponPickup();

To disable the previous effect, it exists this other one:

Code:
self enableWeaponPickup();

The second one is a command which is used over a script_model, to make it a radar, like a portable radar or a juggernaut radar(in minimap). I made a simple function for it:

Code:
GiveARadar()
{
    self endon("death");
    self endon("disconnect");
    radar = spawn("script_model",self.origin);
    radar.team = self.team;
    radar makePortableRadar(self); // this is the command that makes it a radar
    while(1)
    {
        radar MoveTo(self.origin,0.07); //to make it  follow you(like juggernauts)
        waitframe(); //now, a frame is 0.07(thats what _utility.gsc says), :S
    }
}

Also exists a command like this for the scrambler:

Code:
scrambler = spawn("script_model",self.origin);
scrambler = self.team;
scrambler makeScrambler(self); //this makes it jam

Thats it, OMA
Reply

#2
Server fps is set by the sv_fps dvar. I'm pretty sure it still defaults to 20 because 'wait .05;' is still used a lot in the code. And waitframe() is only used like 10 times..
[Image: MaEIQ.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Need a plugin that hides all ! Admin commands sylvester123 7 5,307 07-27-2013, 13:21
Last Post: Bandarigoda123
  how to remove commands in the chat ExoGamer* 6 4,507 07-20-2013, 09:24
Last Post: Pozzuh
  server commands [HARD] Tony. 0 2,094 06-05-2013, 19:44
Last Post: [HARD] Tony.
  Where can I find a list of scripting commands that correspond to ingame buttons? akillj 2 3,140 06-03-2013, 10:38
Last Post: Yamato
  Help Hide commands dhanin 5 4,076 03-28-2013, 00:11
Last Post: Dr3am95
  [Release] Simple Math Commands Yamato 10 7,719 01-28-2013, 12:59
Last Post: Yamato
  HELP ME WITH COMMANDS schorweg123 4 3,522 10-28-2012, 10:50
Last Post: d0h!
  HELP ME WITH COMMANDS schorweg123 1 2,579 10-28-2012, 10:46
Last Post: d0h!
  Need Whole Commands Of Admin Tools worldclass 2 2,756 06-26-2012, 07:39
Last Post: JariZ
  [Request] Enter commands of admin by chat Yurio 1 2,477 01-03-2012, 14:51
Last Post: JariZ

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.