-
Posts
275 -
Joined
-
Last visited
-
Days Won
6
Reputation Activity
-
-
konstans reacted to Zuma in The Ultimate Guide to Binding
In this guide I'll try to cover most of the useful techniques for binding weapons/sweps/entities. However, if I miss any techniques just let me know and I'll try my best to add them.
Basic Binding
Binding is done via a console command with the following syntax:
bind <key> <command> It esentially allows you to run a command on a keypress, and most actions in DarkRP can be accessed via a command.
Commands
You can bind any command to a key, but the most common command's you'll use are the 'use' command and the 'say' command. Here's the syntax for both:
use <swep> say <words> The 'use' command pulls out the weapon/swep you specify, and the say command will make you say whatever you put after it into the in-game chat.
Here's how you'd bind these commands:
bind <key> "use m9k_tec9" bind <key> "say /poo" For the 'use' command, you need to specifiy the swep using it's ID, which you can get by searching for the swep in the Q menu, right clicking it, and then selecting copy to clipboard:
Config Files
Config files are esentially lists of commands (or in this case binds) you want to run at certain times. You can find these files at:
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\cfg To better keep track of your binds, you can put them into 'autoexec.cfg'. This config file is run upon joining the server. This means if you overwrite these binds in-game, they will reset when you rejoin. Once the 'autoexec.cfg' config has run, you can run it or any other config file with the following command:
exec <filename> However, this filename does not include the .cfg file extension.
Alias Command
The 'alias' command allows you to make a new command out of 1 or more pre-existing commands. Here's the syntax:
alias <name> <commands> Alias commands allow you to do some cooler binds which I will explain later, but for now here's an example use:
alias brute "say /brute" This creates a command called 'brute' which upon being run will make you say '/brute', which will therefore make you switch to brute.
Cycle Binds
Cycle binds are binds which rebind themselves. It basically allows you to bind multiple sweps/entities to 1 key. Here's an example that I use for moonshine:
alias moonshine0 "say !buyalcohol; bind / moonshine1" alias moonshine1 "say !buydankjuice; bind / moonshine0" bind / moonshine0 'moonshine0' spawns alcohol then rebinds the / key to moonshine1
'moonshine1' spawns dank juice then rebinds the / key to moonshine0
This will create a loop where each time you press the / key, it will spawn the next moonshine entity.
Finally, the bind command starts the loop by binding moonshine0 to the / key.
Some more practical examples are for bhopping:
alias bhop "use bhop_swep; bind MOUSE5 climb" alias climb "use climb_swep2; bind MOUSE5 bhop" bind MOUSE5 "bhop" Or for making a key pull out a new smg each time you press it:
alias smg0 "use m9k_vector; bind g smg1" alias smg1 "use bb_mac10; bind g smg2" alias smg2 "use bb_tmp; bind g smg3" alias smg3 "use m9k_tec9; bind g smg4" alias smg4 "use m9k_mp9; bind g smg5" bind g smg0 Overlapping Binds (thanks to @Greeny7780 for the idea)
If you want to have a bind pull out a different gun depending on the job, without using a job config file (see below), then you can overlap your binds. Say you want to bind MK14-EBR on Brute, but AK-47 on Rebellion, you would use a bind like this:
bind <key> "use m9k_ak47; use unclen8_mk14" Since both Rebellion and Brute have AK-47, you need to put that first, since it will then default to AK-47, but change to MK14-EBR if it can.
The pro's of using this method is that it's faster to setup, and let's you use the F4 menu instead of console, however you may find it easier to keep track of your binds and make changes with a seperate config.
Job Binds
As an alternative to overlapping binds, you can have a bind config per job, and have a different set of binds for each. Instead of putting your binds into 'autoexec.cfg' or directly into a console, put them into a config file named after the job the binds are for. Here's an example of what you could put in 'brute.cfg':
alias bhop "use bhop_swep;bind MOUSE5 climb" alias climb "use climb_swep2;bind MOUSE5 bhop" bind MOUSE5 "bhop" alias moonshine0 "say !buyalcohol; bind / moonshine1" alias moonshine1 "say !buydankjuice; bind / moonshine0" bind / moonshine0 bind x "use unclen8_mk14" bind g "use m9k_tec9" bind f "use weapon_lightsaber" bind t "use m9k_m14sp" bind z "use m9k_ak47" bind b "use m9k_m249lmg" bind c "use m9k_m1918bar" bind v "use weapon_medkit" bind i "say /buyammo 7" say "/brute" say "/hitprice 10000" As well as binds for your favourite weapons on the job, you also need to add a line to run the command that will turn you into that job. Finally, I also added a line to set my hitprice to 10k.
The last step to make this usable, is to add this line to 'autoexec.cfg':
alias brute "exec brute" Now, instead of switching your job via the F4 menu, simply open the console and type the name of the job, this will then set all your binds, your hitprice if applicable, and change you into the job.
Now there you go, you now have an unhealthy amount of binds. Was it worth the effort? Probably not.
-
-
-
-
-
konstans got a reaction from Zuma in konstans Sexy Shop
IG Name: konstans
Selling: Custom Jobs
Description: Message me at discord (konstans#7481) or In Game
Payment method(s): Paypal Only
Other comments:
Marine Custom Job (CP)
Custom job ownership
Full ownership by @Deadlux & @Dandy
Description
Marine is a Civil Protection custom job that provides you a wide variety of weapons and sweps.
Weapons:
S&W Model 3, HK416, Barret M82, Ithaca, AW50, CSS Galil, Mustang And Sally, Vector, M249, Scar, Remington 870, Dragon Lore, Honey Badger, CSS Deagle
SWEPS:
Police Shield, Camo swep, Disguise kit, Climb swep, BHOP swep, Magic sword, Medkit (HL2), Arrest Baton, Unarrest Baton, Stun Stick, Weapon Checker, Battering Ram
Abilities:
Act as Civil Protection, 100 armour, Police Tree
Price 30£ (Inc Fee)
-
konstans got a reaction from Dandy in konstans Sexy Shop
IG Name: konstans
Selling: Custom Jobs
Description: Message me at discord (konstans#7481) or In Game
Payment method(s): Paypal Only
Other comments:
Marine Custom Job (CP)
Custom job ownership
Full ownership by @Deadlux & @Dandy
Description
Marine is a Civil Protection custom job that provides you a wide variety of weapons and sweps.
Weapons:
S&W Model 3, HK416, Barret M82, Ithaca, AW50, CSS Galil, Mustang And Sally, Vector, M249, Scar, Remington 870, Dragon Lore, Honey Badger, CSS Deagle
SWEPS:
Police Shield, Camo swep, Disguise kit, Climb swep, BHOP swep, Magic sword, Medkit (HL2), Arrest Baton, Unarrest Baton, Stun Stick, Weapon Checker, Battering Ram
Abilities:
Act as Civil Protection, 100 armour, Police Tree
Price 30£ (Inc Fee)
-
konstans reacted to Miller in Reformed Miller Store
Miller's Information:
Name: DTT Miller / Carlos Hunter
Payment method(s): PayPal
Extra Info: Selling Custom Jobs Listed Below
Discord: Miller#4991
⤜HOBO+⤛
Description:
@Sprickles@Slav King
Grappling hook, Elephant Gun what more could you want
Weapons:
Honeybadger - Winchester 1897 - Elephant Gun (.950 JDJ) - M249 - MP7 - Ithaca - M14, Exile Launcher
SWEPS:
Keypad cracker - Hackphone - Half Life 2 Bugbait - Unarrest Baton - Medkit - Grappling Hook
Abilities:
100 Armour - DJ Equipment - Ability to spawn Gun Dealer Guns - Ability to spawn Special Arms Dealer Guns - Can raid PD - Hits - Drug Lab - Has Custom spawnable drugs
£50 Inc Fee
More Jobs Soon!
-
-
-
konstans got a reaction from Enzo in RASTA MAN Free Slot Giveaway
GL guys
STEAM_0:0:172445758
ChrisGM:
-
konstans got a reaction from ChrisGolem in RASTA MAN Free Slot Giveaway
GL guys
STEAM_0:0:172445758
ChrisGM:
-
-
konstans reacted to Holm in Holm's Store - Sold out
Store updated!
The return of the baldy bastard
?????? ?? ?? ????????. ???? ?? ?????? ??? ??? ?????? ?? ????? ??? ??? ???.
-
konstans got a reaction from Nate Bar in konstans Sexy Shop
IG Name: konstans
Selling: Custom Jobs
Description: Message me at discord (konstans#7481) or In Game
Payment method(s): Paypal Only
Other comments:
Marine Custom Job (CP)
Custom job ownership
Full ownership by @Deadlux & @Dandy
Description
Marine is a Civil Protection custom job that provides you a wide variety of weapons and sweps.
Weapons:
S&W Model 3, HK416, Barret M82, Ithaca, AW50, CSS Galil, Mustang And Sally, Vector, M249, Scar, Remington 870, Dragon Lore, Honey Badger, CSS Deagle
SWEPS:
Police Shield, Camo swep, Disguise kit, Climb swep, BHOP swep, Magic sword, Medkit (HL2), Arrest Baton, Unarrest Baton, Stun Stick, Weapon Checker, Battering Ram
Abilities:
Act as Civil Protection, 100 armour, Police Tree
Price 30£ (Inc Fee)
-
konstans got a reaction from sw4ner in konstans Sexy Shop
IG Name: konstans
Selling: Custom Jobs
Description: Message me at discord (konstans#7481) or In Game
Payment method(s): Paypal Only
Other comments:
Marine Custom Job (CP)
Custom job ownership
Full ownership by @Deadlux & @Dandy
Description
Marine is a Civil Protection custom job that provides you a wide variety of weapons and sweps.
Weapons:
S&W Model 3, HK416, Barret M82, Ithaca, AW50, CSS Galil, Mustang And Sally, Vector, M249, Scar, Remington 870, Dragon Lore, Honey Badger, CSS Deagle
SWEPS:
Police Shield, Camo swep, Disguise kit, Climb swep, BHOP swep, Magic sword, Medkit (HL2), Arrest Baton, Unarrest Baton, Stun Stick, Weapon Checker, Battering Ram
Abilities:
Act as Civil Protection, 100 armour, Police Tree
Price 30£ (Inc Fee)
-
konstans got a reaction from ChrisGolem in konstans Sexy Shop
Boney for 35 i pay fee
Rebellion 25 i pay fee
Chief Inspector 15 i pay fee
Prices Negotiable
-
-
-
-
konstans reacted to Slayer in Marine Giveaway!
Congratulations to @Kaede❄ for Winning the Marine Slot.
Thank you for everyone who showed interest in the giveaway.
I would also like to apologize for the Mistake on the first spin as I had forgotten a few names on the wheel so I had to respin to make it fair.
@james.
-
konstans reacted to Slayer in Marine Giveaway!
I've decided to give away 1 Marine Slot for the one Year anniversary of @Spoodermans Closed Shop. To enter the giveaway all you have to do is reply to this post. To make it as fair as I can you may only enter the Giveaway once, No Exceptions. The Giveaway ends in 3 Days. I will unvail the winner in CG Discord in unlimited voice channel at 7pm UK Time on Friday.
Marine is a CP Custom Job that Acts like the Swat Sniper and follows the same rules, meaning that you are not forced to AOS people anymore and can KOS people instead. It comes with a fair amount of weapons, 150 Armour and with all the Sweps. More about what is has is below.
What Marine Has:
Weapons:
HK 416,Vector, SPAS 12, Double Barrel, AI AW50, Winchester 1897, Ithaca, Dlore, PKM , Matador.
SWEPS:
Climb SWEP, 150 Armour, Arrest/Unarrest Baton, Battering Ram, Stun-stick, Weapon Checker, Shield, Magic Sword, Medkit, Camo Swep, Disguise Kit, BHOP Swep.
Abilities:
Act as Civil Protection, Act as S.W.A.T Sniper, Ability to build on the street.
-
-