Killing Floor 2 Console Commands

Killing Floor 2 Console Commands


Berserk = Gives you Berserker weapons.
Medic = Gives you Medic weapons.
Assault = Gives you Commando weapons.
Shotty = Gives you Support weapons.
Nails = Gives you the VLAD-1000 Nailgun.
Uberammo = Unlimited ammo (no reload) and grenades.
NoSpread/GoSpread = Disables/Enables weapon spread.
NoRecoil/GoRecoil = Disables/Enables weapon recoil.
WeapFOV x = Changes weapon FOV (have to be changed for each individual weapon).
NextTrack = Plays the next song.
SetGravity x = Sets the gravity.
SetJumpZ x = Sets how high the player jumps.
SetSpeed x = Sets the player walk speed.
ClearCorpses = Does what it says.
ClearSplatters = Does what it says.
ResetDoors = Resets all doors on the map.
ToggleZedsIgnoreMe = Zeds with AI will ignore the player and possibly die from inactivity.
ToggleHUD, ShowHUD = Shows/hides the hud.
ToggleScreenShotMode = Removes HUD and arms. Arms will permanently be disabled, use ShowHands 1 to reenable them.

SpawnDebugAI = Works exactly like SpawnZed, but spawns a Zed with controllable AI.
AI = Just type this in and some AI commands will appear above (if using F3 console), scroll to find more. These commands will only work with a Debug AI character.

VC-Mod Instructions for Gmod

VC-Mod Instructions for Gmod - Vehicle Control Console Commands


//Console Commands, all of which can be accessed VIA Utilities menu:
//"VC_Enabled" - Force enable/shut down Vehicle Controller.
//"VC_Enabled_CLIENT" - Force enable/shut down Client-Side part of the Vehicle Controller.
//"VC_Trl_Auto_Attach" - Automatically attach a trailer nearby.
//"VC_Trl_Attach_Distance" - Distance in order for the trailer to auto attach (min 15, max 250).
//"VC_Trl_Brakes_Enter_Exit" - Brakes On/Off on enter/exit (VC_Trl_Truck_Brakes controls this too).
//"VC_Trl_Truck_Brakes" - Combine the trucks brakes with the trailers.
//"VC_Trl_Crash_Brakes" - Trailers brakes active after involuntary detach.
//"VC_Trl_View_Adjust" - Custom third person view while having a trailer attached.
//"VC_Trailer_Detach" - Detach currently attached trailer.
//"VC_Siren_OnOff" - Turn the siren On/Off when in a vehicle carrying one.
//"VC_Siren_Sound_OnOff" - Toggle the siren sound, will not turn on the sound if siren is off.
//"VC_Siren_Affect_NPCs" - Agitate NPCs with the vehicles police siren.
//"VC_Brake_Lock" - Don't brake the car on exit if not braking.
//"VC_Wheel_Lock" - Lock the cars steering wheel on exit.
//"VC_Scale_Damage_Melee" - When in a custom vehicle scale melee damage.
//"VC_Door_Sounds" - Play a sound when opening/closing the car doors.
//"VC_Wheel_Dust" - Dust effect coming out of the wheels, depending on what surface the car is on.
//"VC_Wheel_Dust_Brakes" - Additional Dust effect coming out of the wheels when braking.
//"VC_Exit_Velocity" - Set your velocity to the same one that the vehicle has on exit.
//"VC_Exit_NoCollision" - Disable collisions between entitys and the vehicle till you finish exiting it.
//"VC_Exhaust_Effect" - Exhaust effect coming from the vehicles exhaust pipes.
//"VC_Damage" - Vehicles are capable of receiving damage.
//"VC_Dmg_Fire_Duration" - Delay before the fire gets removed after the explosion
//"VC_Lights_OnOff" - Lights On/Off.
//"VC_Health_Multiplier" - Starting health multiplier, depends on the volume the vehicle occupies.
//"VC_Lights_Brake" - Emit lights when applying brakes.
//"VC_Lights_Reverse" - Emit lights when reversing.
//"VC_Blinkers_OnOff" - Turn Lights On/Off when turning to the direction you want them to lit.
//"VC_Hazards_OnOff" - Turn Hazard lights On/Off.
//"VC_Cruise_OnOff" - Cruise Control On/Off, forward/back to increase/decrease cruise speed.
//"VC_ThirdPerson_Auto" - Automatically adjust vehicles camera when in third person.
//"VC_ThirdPerson_Auto_Pitch" - Automatic camera adjust pitch.
//"VC_ThirdPerson_Dynamic" - Dynamic third person view.
//"VC_ThirdPerson_Vec_Stf" - Dynamic view vector stiffness percentage. 100% is off.
//"VC_ThirdPerson_Ang_Stf" - Dynamic view angle stiffness percentage. 100% is off.
//"VC_ThirdPerson_Ang_Pitch" - Sharpen dynamic view angle pitch.
//"VC_ThirdPerson_Cam_World" - Camera can see through everything except the world.
//"VC_Passenger_Seats" - Enable players to use passanger seats.
//"VC_Switch_Seats" - Switch to different seats (passenger or driver), driver cant do this.
//"VC_Radio" - Play live online stream of music to your vehicle.
//"VC_Radio_OnOff" - Turn the radio on/off while keeping the station.
//"VC_Radio_Change" - Cycle through available stations.
//"VC_Model_Adjust" - Adjust the third person model position on vehicle enter.

//"VC_Keyboard_Input" - Use predefined key sets on the keyboard to control the script, can still use the menu.
//Seats: Press buttons 1-9 to choose through the first 9 seats, 0 to cycle through all of them.
//Radio Controls: Comma/Period/Slash for Previous/Next/OnOff.
//Lights: Press and release 'F' key to toggle headlights, hold the key to toggle nightlights, steer and hold the key to toggle turnlights.
//Horn: Press the 'R' key to sound the cars horn, the longer yo hold the key the longer it'll play.

//"VC_MouseControl" - Mouse control while in third person view, additional detail:
//Scroll up/down to zoom in/out, zoomed in is the default zoom level.
//Hold the middle button to look behind, release to reset.

All of these commands have a matching menu button to go with them so it's unlikely you will need to use them unless you wish to bind them to keys.

-----Manual Trailer Instructions-----

1) The semi-trailer in this pack is a vehicle so spawn it from the vehicle tab first.

2) Aim at the trailer and enter 'ent_setname trailer' into the console without the ''.

3) You can now give the trailer other commands. To allow it to move enter 'ent_fire trailer handbrakeoff' into the console, you can also bind this to a key.

Note. This may require sv_cheats to be set to 1 so if it's not working then make sure it is switched on first.

4) To park the trailer enter 'ent_fire trailer handbrakeon'

To pull the trailer with a truck just position the pin into the fifth wheel on the back of the truck and that is it, 
if you want extra security against detachments then use a ballsocket constraint although it is not usually necessary.

-----Truck Instructions-----

To change the bodygroup of the Longnose truck aim at it and use 'ent_fire !picker setbodygroup *'

* any number 0 to 2

0 = No wind deflector
1 = Wind deflector at low inclination
2 = Wind deflector at high inclination

Both trucks and the semi-trailer feature 19 skins to choose from plus an additional 6 spare slots for you to use for your own skins.
 
To switch them use a skin switcher tool or 'ent_fire !picker skin *'

* any number 0 to 24

** The tanker has 12 skin slots so use any number from 0 to 11

-----Additional Instructions-----

To name a car aim at it and then type: ent_setname name
you can then control the car by saying: 

ent_fire name turnon - turns on the car's engine, sound may not be heard this is because of some sound files not working competely, don't worry though there is nothing wrong.
ent_fire name turnoff - turns off the car's engine, this is still a bit buggy in my experiance so it's better to just get into a car and then get out again if you want to turn it off.
ent_fire name throttle -1/0/1 - you can enter higher or lower numbers but they may cause problems.
ent_fire name steer -1/0/1 - you can enter higher or lower numbers but they may cause problems.
ent_fire name handbrakeoff - turns off the handbrake, this will allow the car to roll freely.
ent_fire name handbrakeon - turns on the handbrake, this will prevent the car from moving.

Gmod Fairy Wiremod E2 script

Gmod Fairy Wiremod E2 script


@name Fairy
@persist Fairy:entity Owner:entity FairyPos:vector CurPos:vector Target:entity
@persist HoloGo ColourList:array Mass
@persist Players:array PlayerKills:array Deaths TargetDeaths PlayerCount
@persist HideChat Mode LastMode Revenge Radius

#Based on General Guy's Fairy by Talix

runOnTick(1)
runOnChat(1)

if(first() | duped())
{
    #Default Values
    DefaultColour = "purple"
    Revenge = 1
    Mode = 2
    
    Owner = owner()
    Fairy = entity()
    HoloGo = 1
    Radius = 1
    hint("Hello, "+owner():name()+".",25)
    hint("To see a detailed list of commands, or for help, type !cmds",25)
    hint("If you don't have a name for me already, give me one!",25)
        
    #Choice of colours
ColourList = array()
    ColourList:pushString("red")
    ColourList:pushVector4(vec4(255,100,100,255))
    ColourList:pushString("blue")
    ColourList:pushVector4(vec4(100,200,255,255))
    ColourList:pushString("green")
    ColourList:pushVector4(vec4(100,200,100,255))
    ColourList:pushString("gold")
    ColourList:pushVector4(vec4(255,200,0,255))
    ColourList:pushString("pink")
    ColourList:pushVector4(vec4(255,95,215,255))
    ColourList:pushString("purple")
    ColourList:pushVector4(vec4(170,80,215,255))
    ColourList:pushString("white")
    ColourList:pushVector4(vec4(200,200,200,255))
    ColourList:pushString("invis")
    ColourList:pushVector4(vec4(0,0,0,0))
}

if (Fairy == noentity()|Fairy:pos() == vec(0,0,0))
{
    Owner = owner()
    Fairy:setAlpha(0)
    HoloGo = 1
else 
{
    if(HoloGo == 1) 
    {
        holoCreate(0, Fairy:pos())
        holoParent(0, Fairy)
        holoModel(0, "icosphere3")
        holoMaterial(0, "models/props_combine/tpballglow")
        holoScale(0, vec(0.4,0.4,0.4))
        holoCreate(1, Fairy:pos())
        holoParent(1, Fairy)
        holoModel(1, "icosphere3")        holoMaterial(1, "models/props_combine/tpballglow")
        holoScale(1, vec(0.8,0.8,0.8))

        #Set Default Colour
 Found = 0
        for(I=1, ColourList:count(), 2)
        {
            if (!Found & DefaultColour == ColourList[I, string])
            {
                Fairy:setColor(vec(ColourList[I+1, vector4]), 0)
                Fairy:setTrails(16, 0, 10, "trails/laser", Fairy:getColor(), ColourList[I+1, vector4]:w())
                
                holoColor(0, mix(Fairy:getColor(),vec(200,200,200),0.4),255)
                holoColor(1, Fairy:getColor(),255)
                
                Found = 1
            }
        }
        if(!Found)
        {
            hint("Invalid default colour", 45)
        }

        HoloGo = 0
    }
    holoAng(0, ang(0,0,0))
    holoAng(1, ang(0,0,0))
}

if (Mode == 3)
{
    if(TargetDeaths != Target:deaths())
 {
        Mode = LastMode
        if (Mode == 3)
        {
            Mode = 0
        }
    }
}
    
if (Revenge & !isSinglePlayer() & findCanQuery())
{
    if (PlayerCount != numPlayers())
    {
        PlayerCount = numPlayers()
        findExcludePlayer(owner())
        findByClass("Player")
        Players = findToArray()
    }

    if (Deaths != Owner:deaths())
    {
        for(I=0, Players:count())
        {
            if (Players[I, entity]:frags() != PlayerKills[I, number])
            {
                Target = Players[I, entity]
                TargetDeaths = Target:deaths()
                LastMode = Mode
                Mode = 3 
            }
        }
 }

    Deaths = Owner:deaths()

    for(I=0, Players:count())
    {
        PlayerKills[I, number] = Players[I, entity]:frags()
    }
}

Command=Owner:lastSaid()
if ((chatClk(owner()) | chatClk(Owner)) & Command:left(1)=="!") 
{
    Input = Command:explode(" ")
    Command=Input[1, string]:sub(2,Input[1, string]:length())
    Argument = Input[2, string]

    hideChat(HideChat)

    if(Command == "cmds")
    {
        hint("Inputs:",45)
        hint("'!hidechat 1/0' sets hidechat to hide chat commands.",45)
 hint("'!f' f follows what you're looking at",45)
        hint("'!f <Player>' gives the fairy to a friend",45)
        hint("'!rad ' sets circle radius",45)
        hint("'!colours' to see the available colors.",45)
        hint("'!colour <Colour Name>' to change to the named colour", 45)
        hint("'!stay' makes the fairy stay",45)
        hint("'!spiral 1/0' turns on/off the spiral movement",45)
        hint("'!revenge 1/0' turns on/off revenge mode", 45)
        hint("'!kill <Player>' Kill target", 45)
    }
    elseif(Command=="f")
    {
        if(Mode == 1)
        {
            Mode = 0
        }

        if (Argument:length() > 0)
        {
            Owner = findPlayerByName(Argument)
            if(!Owner)
            {
               Owner = owner()
               hint("Invalid Target",5)
            }
            hint("Following player " + Owner:name(), 5)
        }
        else
 {
            if(Owner:aimEntity():type() == "prop_physics") 
            {
                PropTarget = Owner:aimEntity():model():replace(".mdl", ""):explode("/")
                Owner = Owner:aimEntity()
                hint("Following prop ''" + PropTarget[PropTarget:count(),string] + "'' owned by " + Owner:owner():name(), 5)
            }
            elseif(Owner:aimEntity():type() == "player") 
            {
                Owner = Owner:aimEntity()
                hint("Following player " + Owner:name(), 5)
            }
            else
            {
                hint("Invalid Target",5)
            }
        }
    }
    elseif(Command == "rad")
    {
        if(Argument:toNumber() > 25)
        {
            hint("Sadly, radius can not be set any higher than 25.",5)
        } 
        else 
        {
            Radius = Argument:toNumber()/10
            hint("Setting Radiusius to "+(Radius*10):toString()+", default is 10.",5)
        }
    }
elseif(Command == "hidechat")
    {
        if (Argument == "0")
        {
            HideChat = 0
hint("Showing Chat Inputs!",5)
        }
        else
        {
            HideChat = 1
            hint("Hiding Chat Inputs!",5)
        }
    }
    elseif(Command == "stay")
    {
        Mode = 1
        CurPos = Fairy:pos()
        hint("Staying here.",5)
    }
    elseif(Command == "spiral")
    {
        if (Argument == "0")
        {
            Mode = 0
            hint("Turning off Spiral",5)
        }
        else
        {
            Mode = 2
            hint("Turning on spiral",5)
        }
    }
    elseif(Command == "colour")
    {
        Found = 0
        for(I=1, ColourList:count(), 2)
        {
 if (!Found & Argument == ColourList[I, string])
            {
                Fairy:setColor(vec(ColourList[I+1, vector4]), 0)
                Fairy:setTrails(16, 0, 10, "trails/laser", Fairy:getColor(), ColourList[I+1, vector4]:w())
                
                holoColor(0, mix(Fairy:getColor(),vec(200,200,200),0.4),255)
                holoColor(1, Fairy:getColor(),255)
                
                hint("Setting Colour to " + ColourList[I, string], 45)
                
                Found = 1
            }
        }
        
        if (!Found)
        {
            hint("Invalid colour, Input !colours to see available colours", 45)
        }
    }
    elseif(Command == "colours")
    {
        hint("Colours:",45)
        
        for(I=1, ColourList:count(), 2)
        {
            hint(ColourList[I, string], 45)   
        }        
    }
    elseif(Command == "revenge")
    {
        if(Argument == "0")
        {
Revenge = 0
            hint("Revenge mode off", 5)
        }
        else
        {
            Revenge = 1
            hint("Revenge mode on", 5)
        }
    }
    elseif(Command == "kill")
    {
        if (Argument:length() > 0)
        {
            Target = findPlayerByName(Argument)
            
            if (Target)
            {
                TargetDeaths = Target:deaths()
                LastMode = Mode
                Mode = 3 
            }
        }
        else
        {
            hint("Please specify a player to kill", 5)
        }
    }
}

if(Mode == 0)
{
    FairyPos = Owner:pos()+vec(Owner:radius()*sin(curtime()*50)*Radius, Owner:radius()*cos(curtime()*50)*Radius, Owner:height()+20)
    Fairy:setMass(1)
    Fairy:applyForce(((FairyPos - Fairy:pos()) * 3 - Fairy:vel()) * Fairy:mass())
}
elseif(Mode == 1)
{
    FairyPos = CurPos+vec(Owner:radius()*sin(curtime()*50)*Radius, Owner:radius()*cos(curtime()*50)*Radius,0)
    Fairy:setMass(1)
    Fairy:applyForce(((FairyPos - Fairy:pos()) * 3 - Fairy:vel()) * Fairy:mass())
}
elseif(Mode == 2)
{
    FairyPos = Owner:pos()+vec(Owner:radius()*sin(curtime()*50)*Radius, Owner:radius()*cos(curtime()*50)*Radius, (Owner:radius()*cos(curtime()*10)*Radius)+Owner:height()+20)   
    Fairy:setMass(1)
    Fairy:applyForce(((FairyPos - Fairy:pos()) * 3 - Fairy:vel()) * Fairy:mass())
}
elseif(Mode == 3)
{
    FairyPos = Target:pos():setZ((Target:height()/2) + Target:pos():z())
    Fairy:setMass(50000)
    Fairy:applyForce(((FairyPos - Fairy:pos()) * 1) * Fairy:mass())
}

GMOD Pac3 Pony MLP - Bunch o' Commands

GMOD Pac3 Pony MLP - Bunch o' Commands


[1] = {
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["ClassName"] = "event",
["UniqueID"] = "1510965104",
["Event"] = "say",
["Arguments"] = "sexy@@1e+020",
["Invert"] = true,
},
},
},
["self"] = {
["URL"] = "https://dl.dropboxusercontent.com/u/71860512/Garry%27s%20Mod/PAC%203/animations/ShowingOff_Fin_Long.txt",
["ClassName"] = "custom_animation",
["UniqueID"] = "929996155",
},
},
},
["self"] = {
["ClassName"] = "group",
["UniqueID"] = "3581386894",
["Name"] = "show off",
},
},
[2] = {
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["ClassName"] = "event",
["UniqueID"] = "2650899712",
["Event"] = "say",
["Arguments"] = "im ready@@1e+025",
["Invert"] = true,
},
},
},
["self"] = {
["URL"] = "https://dl.dropboxusercontent.com/u/71860512/Garry%27s%20Mod/PAC%203/animations/PresentingSelf_Fin_Long.txt",
["ClassName"] = "custom_animation",
["UniqueID"] = "1176577440",
},
},
},
["self"] = {
["Name"] = "give it to me",
["DrawOrder"] = 9999999999999,
["UniqueID"] = "4186559454",
["ClassName"] = "group",
},
},
[3] = {
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["ClassName"] = "event",
["UniqueID"] = "4237563577",
["Event"] = "say",
["Arguments"] = "problam officar@@1e+017",
["Invert"] = true,
},
},
},
["self"] = {
["URL"] = "https://dl.dropboxusercontent.com/u/71860512/Garry%27s%20Mod/PAC%203/animations/HoovesOnWalls_Long_Fin.txt",
["ClassName"] = "custom_animation",
["UniqueID"] = "3373522795",
["EditorExpand"] = true,
},
},
},
["self"] = {
["Name"] = "wall",
["DrawOrder"] = 1e+016,
["UniqueID"] = "2129194977",
["ClassName"] = "group",
},
},
},
["self"] = {
["ClassName"] = "group",
["UniqueID"] = "569420019",
["Name"] = "Animations from companion cube",
},
},
[2] = {
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["Arguments"] = "lick@@9999999999999",
["Invert"] = true,
["Event"] = "say",
["UniqueID"] = "1853059672",
["EditorExpand"] = true,
["ClassName"] = "event",
},
},
[2] = {
["children"] = {
},
["self"] = {
["Max"] = -20,
["Pow"] = 2,
["UniqueID"] = "2513657497",
["Axis"] = "y",
["Min"] = 30,
["VariableName"] = "Angles",
["Offset"] = 1,
["InputMultiplier"] = 5.1,
["ClassName"] = "proxy",
},
},
},
["self"] = {
["Angles"] = Angle(0, 29.95086479187, 0),
["UniqueID"] = "596673778",
["Bone"] = "lrigscull",
["ClassName"] = "bone",
["EditorExpand"] = true,
},
},
[2] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["Arguments"] = "lick@@1e+017",
["Invert"] = true,
["Event"] = "say",
["UniqueID"] = "537303413",
["EditorExpand"] = true,
["ClassName"] = "event",
},
},
[2] = {
["children"] = {
},
["self"] = {
["Max"] = 4,
["ClassName"] = "proxy",
["UniqueID"] = "361843076",
["InputMultiplier"] = 5.1,
["Axis"] = "y",
["Pow"] = 5,
["EditorExpand"] = true,
["VariableName"] = "Scale",
},
},
},
["self"] = {
["Position"] = Vector(7.87060546875, 1.318359375, 0.35546875),
["Model"] = "models/pac/default.mdl",
["ClassName"] = "model",
["Scale"] = Vector(0.89999997615814, 0.0004398753226269, 1.1000000238419),
["EditorExpand"] = true,
["AngleOffset"] = Angle(0, 90, 0),
["Size"] = 0.1,
["Material"] = "models/ihvtest/eyeball_l",
["Color"] = Vector(255, 127, 127),
["Bone"] = "lrigscull",
["Translucent"] = true,
["UniqueID"] = "3970134719",
},
},
},
["self"] = {
["ClassName"] = "group",
["UniqueID"] = "1971747646",
["Name"] = "Lick",
},
},
[3] = {
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["ClassName"] = "event",
["UniqueID"] = "3761802629",
["Event"] = "say",
["Arguments"] = "disco?@@99999999",
["Invert"] = true,
},
},
},
["self"] = {
["URL"] = "http://mp3skullvideos.com/music/temp/Lovegame_(wWw.iPagalWorld.Com).mp3",
["ClassName"] = "webaudio",
["UniqueID"] = "342026122",
},
},
[2] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["ClassName"] = "event",
["UniqueID"] = "4027710269",
["Event"] = "say",
["Arguments"] = "shake@@1e+017",
["Invert"] = true,
},
},
},
["self"] = {
["URL"] = "https://copy.com/4Dny6esUjbKvsJxr?download=",
["ClassName"] = "custom_animation",
["UniqueID"] = "3642796048",
["EditorExpand"] = true,
},
},
[3] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["ClassName"] = "event",
["UniqueID"] = "2635004108",
["Event"] = "say",
["Arguments"] = "disco?@@1e+017",
["Invert"] = true,
},
},
},
["self"] = {
["URL"] = "https://copy.com/4Dny6esUjbKvsJxr?download=",
["ClassName"] = "custom_animation",
["UniqueID"] = "937009364",
},
},
},
["self"] = {
["ClassName"] = "group",
["UniqueID"] = "1922428404",
["DrawOrder"] = 2.8,
["Name"] = "my outfit",
["Description"] = "add parts to me!",
},
},
[4] = {
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["UniqueID"] = "2621686355",
["Model"] = " https://dl.dropboxusercontent.com/u/41871444/pacs/new/DOOK.obj",
["Material"] = "models/debug/debugwhite",
["Hide"] = true,
["EditorExpand"] = true,
["Position"] = Vector(3.1148071289063, 14.792146682739, -2.489501953125),
["ClassName"] = "model",
["Angles"] = Angle(-85.21875, -124.09375, 105.6875),
["Size"] = 0.2,
["PositionOffset"] = Vector(2.7999999523163, 0, 0),
["Color"] = Vector(17, 17, 17),
["Bone"] = "lrigpelvis",
["Brightness"] = 4.3,
["AngleOffset"] = Angle(179.78125, -174.96875, 111.40625),
},
},
[2] = {
["children"] = {
},
["self"] = {
["URL"] = "http://www.derpygamers.com/PAC_Content_Gmod/animations/Hump1A.txt",
["ClassName"] = "custom_animation",
["UniqueID"] = "1929851726",
},
},
},
["self"] = {
["Arguments"] = "hnng@@1e+017",
["Invert"] = true,
["Event"] = "say",
["UniqueID"] = "4161139024",
["EditorExpand"] = true,
["ClassName"] = "event",
},
},
},
["self"] = {
["Name"] = "Dick + Hump",
["ClassName"] = "group",
["UniqueID"] = "2738062402",
["Description"] = "add parts to me!",
},
},
[5] = {
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["Angles"] = Angle(0, 30.21875, 0),
["Bone"] = "lrigneck 2",
["UniqueID"] = "3514719603",
["ClassName"] = "bone",
},
},
[2] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["UniqueID"] = "2220976419",
["Scale"] = Vector(1, 0.5, 0.69999998807907),
["ClassName"] = "model",
["Size"] = 0.175,
["Position"] = Vector(-0.1298828125, 0.052734375, 0.1689453125),
["Color"] = Vector(0, 0, 0),
["Bone"] = "lrig lefteg fl fronthoof",
["Model"] = "models/hunter/plates/plate1x1.mdl",
["Material"] = "models/debug/debugwhite",
},
},
[2] = {
["children"] = {
},
["self"] = {
["ClassName"] = "text",
["Angles"] = Angle(0.125, -179.5625, -4.875),
["UniqueID"] = "2575288380",
["Font"] = "DermaDefault",
["Color"] = Vector(17, 17, 17),
["Size"] = 0.025,
["Position"] = Vector(-1.8525390625, 0.83984375, 0.44384765625),
["Text"] = "41 Megapixel",
},
},
[3] = {
["children"] = {
},
["self"] = {
["Angles"] = Angle(0, 0, -89.78125),
["ClassName"] = "model",
["UniqueID"] = "3072478879",
["Size"] = 0.075,
["Color"] = Vector(0, 0, 0),
["Position"] = Vector(-2.1513671875, -0.11328125, 0.353515625),
["Model"] = "models/sprops/geometry/t_fdisc_42.mdl",
["Material"] = "models/debug/debugwhite",
},
},
[4] = {
["children"] = {
},
["self"] = {
["Material"] = "models/debug/debugwhite",
["UniqueID"] = "1867664338",
["ClassName"] = "model",
["Size"] = -0.025,
["Position"] = Vector(-3.0380001068115, -0.07599999755621, 0.5),
["Model"] = "models/sprops/geometry/t_fdisc_42.mdl",
["Angles"] = Angle(0, 0, -89.78125),
},
},
[5] = {
["children"] = {
},
["self"] = {
["ClassName"] = "text",
["Angles"] = Angle(0.125, -179.5625, -4.875),
["UniqueID"] = "4148048384",
["Font"] = "DermaDefault",
["Color"] = Vector(17, 17, 17),
["Size"] = 0.025,
["Position"] = Vector(-1.861328125, 0.482421875, 0.44140625),
["Text"] = "Zeiss",
},
},
[6] = {
["children"] = {
},
["self"] = {
["Material"] = "models/debug/debugwhite",
["Position"] = Vector(-1.6796875, -0.6875, 0.26708984375),
["ClassName"] = "model",
["Size"] = 0.125,
["UniqueID"] = "1310781670",
["Model"] = "models/sprops/rectangles/size_1/rect_3x12x3.mdl",
["Scale"] = Vector(1, 0.69999998807907, 0.80000001192093),
},
},
[7] = {
["children"] = {
},
["self"] = {
["Angles"] = Angle(0.65625, -90.6875, -179.96875),
["UniqueID"] = "1713554795",
["Font"] = "DermaDefault",
["ClassName"] = "text",
["Size"] = 0.05,
["Position"] = Vector(-3.951171875, 0.15000000596046, -0.0263671875),
["Text"] = "Nokia",
},
},
},
["self"] = {
["UniqueID"] = "2063944972",
["Position"] = Vector(4.20556640625, -0.498046875, -0.78857421875),
["Scale"] = Vector(1, 0.5, 0.30000001192093),
["EditorExpand"] = true,
["Angles"] = Angle(-41.90625, -84.96875, 179.28125),
["Size"] = 0.15,
["ClassName"] = "model",
["Fullbright"] = true,
["Bone"] = "lrig lefteg fl fronthoof",
["Model"] = "models/hunter/plates/plate1x1.mdl",
["Material"] = "http://i.imgur.com/E0y3ela.jpg",
},
},
[3] = {
["children"] = {
},
["self"] = {
["Angles"] = Angle(8.5625, 41.8125, -2.75),
["Position"] = Vector(1.169921875, 2.171875, 1.91015625),
["Bone"] = "lrig lefteg fl rightadius",
["UniqueID"] = "3224228709",
["ClassName"] = "bone",
},
},
[4] = {
["children"] = {
},
["self"] = {
["Angles"] = Angle(36.03125, 66.9375, 0),
["Bone"] = "lrig lefteg fl humerus",
["UniqueID"] = "778600070",
["ClassName"] = "bone",
},
},
[5] = {
["children"] = {
},
["self"] = {
["Angles"] = Angle(-43.84375, 64.6875, -55.6875),
["Position"] = Vector(0, 0, 0.40000000596046),
["Bone"] = "lrig lefteg fl fronthoof",
["UniqueID"] = "3002067259",
["ClassName"] = "bone",
},
},
},
["self"] = {
["Arguments"] = "gmod_camera@@1",
["Invert"] = true,
["Event"] = "weapon_class",
["UniqueID"] = "1012341950",
["EditorExpand"] = true,
["ClassName"] = "event",
},
},
},
["self"] = {
["ClassName"] = "group",
["UniqueID"] = "3164002503",
["Name"] = "Phone - camera",
},
},

HL2RP(gmod) admin commands

HL2RP(gmod) admin commands

/plykick <name of character> - This allows you to kick a player, enter a reason after the name.
/plyban <Name/SteamID/IP> - Bans the player for a certain amount of time. and a time after the <> and a reason. (0 = permanent ban).
/plyunban <Name/SteamID/IP> - Unbans a player.
/CharPermaKill <Character Name> - Permanently kills a player (is currently broken in OA; instead "ban" the character.
/CharBan <Character Name> - Bans the character, more effective than a Permanent kill for the time being; this will take effect when the player re-enters the server or dies.
/plyslay <Character Name> - Makes a character "suicide"; full respawn time.
/observer- Allows you to noclip, type this again to leave noclip and return to the last place you were at.
Misc Admin commands
/CharGiveFlags <Name> <Flags>- Gives the player certain flags; Super admins only. (PETVCG.. etc)- See the "directory" for more info in-game.
/CharTakeFlags <Name> <Flags>- Take the selected flag away.
/doorlock- Locks a door.
/doorunlock- Unlocks a door.
/plysetgroup- <Name> <Operator/Superadmin/Admin>- Owner/Manager use ONLY.
/plySetModel <Name> <Model>- Changes the model of the character, do not use; only use when requested with a valid reason.
/plySetVoiceMail- Used to block pesky PMers.
Roleplay related commands
/event- Used for events.
/plywhitelist <Metropolice Force/Overwatch Transhuman Arm/Administrator>- Adds a player to a group, they can then make a character in the said group.
/plyunwhitelist <Metropolice Force/Overwatch Transhuman Arm/Administraor>- Takes a player out of a whitelist.
/plyAddServerWhitelist- Not used, don't worry about it.
/CharSetCustomClass <Character Name>- Set the custom class of a character; will appear on the scoreboard.
/CharTakeCustomClass <Character Name>- Revokes the custom class of the character.
Non-admin(ish) commands
/ContSetName <Text>- The name of the container, for organization purposes I suppose.
/ContSetPassword <Text>- Allows other people not to look at your stuff.
/ContSetMessage <Text>- What shows up when a character looks at a container.
/broadcast <Text>- CA's only; RP purposes with the CA.

GMOD ULX COMMANDS

local CATEGORY_NAME = "Matrix_"
-------Matrix_'s Prepare for shrek commnad------
function ulx.prepareforshrek( calling_ply, target_plys )
for i=1, #target_plys do
target_plys[ i ]:StripWeapons()
end

ulx.fancyLogAdmin( calling_ply, "#A has prepared #T for Shrek", target_plys )
end
local strip = ulx.command( CATEGORY_NAME, "ulx prepareforshrek", ulx.prepareforshrek, "!prepareforshrek" )
strip:addParam{ type=ULib.cmds.PlayersArg }
strip:defaultAccess( ULib.ACCESS_ADMIN )
strip:help( "Prepares player for !shrek command" )


--------SHREK----------
function SpawnShrek( Pos, Direction )
local train = ents.Create( "prop_physics" )
train:SetModel("models/props_vehicles/train_boxcar.mdl")
train:SetAngles( Direction:Angle() )
train:SetPos( Pos )
train:Spawn()
train:Activate()
train:EmitSound( "ambient/alarms/train_horn2.wav", 100, 100 )
train:GetPhysicsObject():SetVelocity( Direction * 100000 )

timer.Create( "shrekRemove_"..CurTime(), 5, 1, function( train ) train:Remove() end, train )
end

function ulx.shrek( calling_ply, target_plys )
for _, pl in ipairs( target_plys, calling_ply ) do

local Hp = pl:Health()
local Dif = Hp - 20
local HpOut = Hp - Dif
local HpSur = Hp + Dif

pl:SetMoveType( MOVETYPE_WALK )
pl:GodDisable()
pl:SetHealth(HpOut)
SpawnShrek( pl:GetPos() + pl:GetForward() * 1000 + Vector(0,0,50), pl:GetForward() * -1 )
pl:GodDisable()
pl:SetMoveType( MOVETYPE_WALK )

timer.Create( "shrekKillNot_", 6.5, 1, function( target_plys )
if pl:Alive() then pl:SetHealth(HpSur) else end
end )

end

ulx.fancyLogAdmin( calling_ply, "#A Shreked #T", target_plys )
end

local shrek = ulx.command( "Matrix_", "ulx shrek", ulx.shrek, "!shrek" )
shrek::addParam{ type=ULib.cmds.PlayersArg }
shrek::defaultAccess( ULib.ACCESS_ADMIN )
shrek:help( "Shreks a player to kingdom come" )

How to Run cmd.exe with parameters from javascript

How to Run cmd.exe with parameters from javascript


var objShell = new ActiveXObject("Shell.Application");
        objShell.ShellExecute("cmd.exe", "C: cd C:\pr main.exe blablafile.txt auto", "C:\WINDOWS\system32", "open", "1");
 
var run=new ActiveXObject('WSCRIPT.Shell').Run("commands to run");
 
iRetVal = Shell.ShellExecute(
  sFile,
  [ vArguments ],
  [ vDirectory ],
  [ vOperation ],
  [ vShow ]
)
 
var objShell = new ActiveXObject("shell.application");
 
objShell.ShellExecute("cmd.exe", "cd C: C:\cd c:\ext_file main.exe test.txt", "C:\WINDOWS\system32", "open", 1);