Garry's Mod

Garry's Mod

125 ratings
Dragonred's Carry & Mount
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
69.171 KB
17 Jul, 2024 @ 4:27am
7 Aug, 2024 @ 11:00am
9 Change Notes ( view )

Subscribe to download
Dragonred's Carry & Mount

Description
Huge thanks to Chara for helping me test this, part of the reason of why i don't publish Many of the stuff i code is because i don't have another player to test them with, but thanks to her i was able to test this one properly.

What is this Addon?


This Addon allows players to be able to Carry & Mount other Players and NPCs, giving them the possibility to throw or lay a player down somewhere or mount on them and enjoy the view while they accompany them on top of them. I added a lot of variables and extra functions i could think of for this.

Built-in Collision Protection


the addon has a built-in collision protection that starts to npc/players after they leave the carry or mount, i coded this to avoid players getting stuck inside other players/npcs

Server Convars


Here is a List of all Convars that only the Server's Host or Admins can change:
  • d_carrymount_maxmounts (1/10): Defines how many players can mount the same Mount at the same time.
  • d_carrymount_enablecarry_players (0/1): Defines if Players can Carry other Players.
  • d_carrymount_enablecarry_npcs (0/1): Defines if Players can Carry NPCs.
  • d_carrymount_enablemount_players (0/1): Defines if Players can Mount other Players.
  • d_carrymount_enablemount_npcs (0/1): Defines if Players can Mount NPCs.
  • d_carrymount_carryspeedpenalty (0/1.00): Defines a Movement Speed Penalty for players that are carrying someone ( Float value, Multiplier, Combines with Mount speed Penalty if activated )
  • d_carrymount_mountspeedpenalty (0/1.00): Defines a Movement Speed Penalty for players that have other players currently mounting them ( Float value, Multiplier, effect depends on how many players are mounting the Player + if Carrying speed penalty is activated and the player is carrying someone/something. )
  • d_carrymount_allowplayerstouncarryself (0/1): Defines if Players can Free themselves while being carried by someone.
  • d_carrymount_throwmultiplier (1/50): A multiplier for Throwing function that players can do while carrying another Player or an NPC.
  • d_carrymount_allowplayerstolaydownothers (0/1): Defines if players can lay down other players with the Lay down function of the carrying.

All of these Convars can be more easily Edited by using the Admin Settings menu found in Utilities/Dragonred's Carry/Mount/Admin Settings

Client Convars


Here is a list of all Clientside Convars that any Player can change:
  • d_cl_carry_cameraonbody (0/1): Defines if the Third person camera will be focused on the Player's Carry Model while being Carried.
  • d_cl_carry_firstperson (0/1): Defines if the camera will be in a First Person perspective while being Carried
  • d_cl_mount_cameraonbody (0/1): Defines if the Third person camera will be focused on the Player's Mount Model while Mounting someone/something.
  • d_cl_mount_firstperson (0/1): Defines if the camera will be in a First Person perspective while Mounting someone/something.
  • d_cl_mount_showmountedplayersonscreen (0/1): Defines if the player will see a little menu with a list in their HUD while they have players mounted on them, the list shows near the top-left side of the screen.

All of these Convars can be more easily Edited by using the Personal Settings menu found in Utilities/Dragonred's Carry/Mount/Personal Settings

Personal Settings


Players have a special Personal Settings tab found in Utilities/Dragonred's Carry/Mount/Personal Settings, There the Local Player can change settings such as:

  • Allow/Disallow Players to be able to Carry you
  • Allow/Disallow Players to be able to Mount you
  • Set/Unset that Only Players in your White-List are able to Carry you
  • Set/Unset that Only Players in your White-List are able to Mount you
  • Change all Client-side Variables through here ( Camera modes and the Mount Counter )
  • A Button that will make you try to grab the Player/NPC in front of you
  • A Button to Dismount the Current Mount or Mount the Player/NPC infront of you
  • A Button to Dismount all Players that are Currently Mounting you
  • A Button that makes you try to escape from someone while being Carried
  • A Button that allows you to Manage the White-List ( More details below. )

Personal White-List


If you want only certain players to be able to Carry/Mount you, the White-List is for you, in it you can add and remove players from your White-List or completely clean it.

The White-List can be managed by clicking the last button availible in the Personal Settings tab or by using the dragon_managecnmwl console command.

Clientside Settings Saving


All Clientside Settings are saved, the Convars using the classic gmod-client-cvar storaging, but some of the other options ( such as the White-List which is a data-table ) are saved in the Game's Local files, updating the Player's Setting to any server they join.

About the Addon


Here is some more detailed information about the addon:

While Carrying:

When Carrying Another Player or an NPC, You'll be able to:
  • Move the Player/NPC around with you ( Obvious ).
  • Throw the Player/NPC by Holding Left Click ( The force will depend on how much you charged the throw )
  • (PLAYERS ONLY)Lay the Player down anywhere as long as the place is suitable with the TraceHull ( It Spawns an invisible non-collidable pod and lays the player in it, if layed down on a Entity the Pod will be parented to said Entity. The Pod is Removed if the Player leaves it or if the Parented Entity gets removed. )
  • (NPCS ONLY)The NPC will drop their gun on the ground if they have one, their behaviour will not execute while being carried ( this means they won't be invisibly attacking other people. )

While Being Carried & While Mounting:

Camera Modes
While being Carried or while Mounting someone you'll be able to change between 3 camera modes, Those Include:
  • Third Person camera focused on the carrier/mount
  • Third Person camera focused on your model
  • First Person camera that automatically adjusts your height while mounting/position while being carried.

How do i Release myself from someone's hold?
you can either use the "Un-Carry yourself from someone" Button in the Personal Settings tab, say /d_uncarry or use the dragon_uncarry console command to free yourself.

(Warning:) If the Server has the Convar d_carrymount_allowplayerstouncarryself set to 0 you won't be able to use any of these options above to save yourself.

You can also set yourself free by using the kill command.

Maybe a Little Financial Help:


I've been struggling really hard with money these days, specially because where i live the minimum wage is literally about $190 per month..so even 1 dollar could help me a lot with paying the bills and also motivate me to make more addons, i've been thinking about making a PVE Coop boss-fighting gamemode in gmod with a class and achievement system and make my own Nextbots to be the bosses but couldn't find the time or inspiration to make it..

if you have more than enough money and feel like sharing it to help me i'd be really really grateful, a dollar helps a lot:
https://ko-fi.com/dragon_red
[ko-fi.com]
34 Comments
Shadow 13 Jul @ 4:30pm 
was there a way to carry them on your back or am i high?
даня мурмяу 21 Jun @ 12:15am 
what if when i carry someone they're lying not at the right angle (they're turned 90 degrees and hang in the air)? Because IDK what addons this one may conflict with
WolfBite 7 Mar @ 1:22am 
Man you straight up spammed the guy. Great mod by the way, sad people feel the need to blow up message boards instead of learning to do it with all the resources out there.
whitefoxgames 25 Oct, 2024 @ 6:08pm 
hey dragonred im not begging make a script or code that bots can carry players
whitefoxgames 22 Oct, 2024 @ 5:33pm 
someone tell me how too make bots carry players
well 17 Sep, 2024 @ 9:56am 
Amazing frog moment
whitefoxgames 13 Sep, 2024 @ 6:15pm 
can you tell me a tutorial how too make npcs or bots carry and mount players??? pls
whitefoxgames 10 Aug, 2024 @ 2:16pm 
and can you make npcs carry players too?
whitefoxgames 10 Aug, 2024 @ 2:15pm 
can you make bots carry players? im trying too do it and not working
whitefoxgames 10 Aug, 2024 @ 10:58am 
nvm you added it ty