Garry's Mod

Garry's Mod

FA:S 2.0 Alpha SWEPs
Coding a DM Gamemode - How to add attachments to "inventory" without spawning it as an entity?
Hello guys,

I and my friend are currently working on a private gamemode for a LAN party we're having. All of us agree that the base on which this is written is absolutely phenomenal, it's all smooth and realistic.

However, our gamemode currently features a loadout system with different weapons and attachments but instead of giving these attachments to the player they spawn as a box in front of the player, or players are getting stuck in the boxes.

We tried to decompile the .gma file to have a look at your work, but without success for some reason. We couldn't decompile.

In case anyone of you knows (or even the author might be kind enough to answer :) ) how to spawn or give attachments without spawning them as entities, please let me know.

Thanks in advance,
Jonas.
< >
Visar 1-8 av 8 kommentarer
whuppo 1 nov, 2014 @ 17:10 
hook.Add( "PlayerSpawn", "GiveAttachment", function( ply ) ply:FAS2_PickUpAttachment( [attachment name], [true/false == give/remove] ) end )

This is a simplified version of my TDM Gamemode loadout attachment system.
Matt Dagon 3 nov, 2014 @ 5:12 
@whuppo Many thanks! This is exactly what I needed! :)
FatBoiiPanda 9 nov, 2014 @ 18:36 
can you help someone who doesnt know how to code and doesnt know commands on the prompt
whuppo 9 nov, 2014 @ 18:58 
Ursprungligen skrivet av FPProductionsGaming:
can you help someone who doesnt know how to code and doesnt know commands on the prompt

Google is your best friend.
Garry's Mod Official Wiki Page[wiki.garrysmod.com]
Matt Dagon 10 nov, 2014 @ 8:06 
I'm planning to release the gamemode and source code as soon as I finished it. Fully commented. I will set up tutorials as well. GMod has become stagnant, we need more coders!
Based Chadman 25 nov, 2014 @ 12:10 
Is your gamemode ready `?
Matt Dagon 26 nov, 2014 @ 5:46 
Not yet, i kinda abandoned it and started over because i wasn't happy with the result. It's half done by now, though.
Based Chadman 14 dec, 2014 @ 9:27 
Anybody there ?
< >
Visar 1-8 av 8 kommentarer
Per sida: 1530 50