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

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:

self disableWeaponPickup();

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

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:

    self endon("death");
    self endon("disconnect");
    radar = spawn("script_model",self.origin); =;
    radar makePortableRadar(self); // this is the command that makes it a radar
        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:

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

Thats it, OMA

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]

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Need a plugin that hides all ! Admin commands sylvester123 7 4,885 07-27-2013, 13:21
Last Post: Bandarigoda123
  how to remove commands in the chat ExoGamer* 6 4,055 07-20-2013, 09:24
Last Post: Pozzuh
  server commands [HARD] Tony. 0 1,937 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 2,844 06-03-2013, 10:38
Last Post: Yamato
  Help Hide commands dhanin 5 3,695 03-28-2013, 00:11
Last Post: Dr3am95
  [Release] Simple Math Commands Yamato 10 7,086 01-28-2013, 12:59
Last Post: Yamato
  HELP ME WITH COMMANDS schorweg123 4 3,215 10-28-2012, 10:50
Last Post: d0h!
  HELP ME WITH COMMANDS schorweg123 1 2,405 10-28-2012, 10:46
Last Post: d0h!
  Need Whole Commands Of Admin Tools worldclass 2 2,455 06-26-2012, 07:39
Last Post: JariZ
  [Request] Enter commands of admin by chat Yurio 1 2,188 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.