• How to increase critical hit chance?
    7 replies, posted
I'm fairly certain that there isn't a critical hit system within base GMOD, but I thought I'd ask. I've been paid to create a perk system that includes a perk that increases critical hit chance on NPCs and Players by a certain percentage with each purchase, and i'm not exactly sure how to go about changing the chances, or rather i'm not sure if there IS a critical hit chance. If there isn't, could someone possibly point me towards an addon that may add a critical hit system and a simple way to alter the percentage of the chance within code.
You have been paid to make something you don't know how to make? There is no critical hit system, just headshots and headshot multipliers depending on the gamemode. Would not be difficult to create a critical hit system though if you took a read through the wiki. On a side note, took about 5 seconds for me to do a very basic google search and found an addon that offers this, but might not be what the person who paid you wanted. Hopefully you didn't charge too much.
Im wondering what happens when the person who paid you sees this post..you pretty much scammed him because in order for him to pay you you had to say you can do this. Which you apparently cant
Yeah not only did he lie, sounds like he intends to alter someone elses free addon and get paid for it. "If there isn't, could someone possibly point me towards an addon that may add a critical hit system and a simple way to alter the percentage of the chance within code."
You need to flag the player once they use the perk GM/EntityTakeDamage Category - Damage types also can increase. Entity/IsNPC I think that's all you need.
Guys, I understand your confusion but when I said I was paid to make an addon, I meant I develop for a friend's server and he's paying me quite well to make it. I have made literally the entire addon, and this is the first little bump in the road I have encountered and asked for help with. I have found a solution elsewhere, seen as you guys are so hostile and outright just rude. Oh, and no I did NOT intend to 'alter someone elses free addon and get paid for it.' I intended to find an addon we could add to the server, that may have a hook or some sort of global function I could call within my own addon, which could change the chance of a critical hit. No thank you for the absurdly rude comments.
Sorry if I hurt your feelings, maybe explaining things better when asking a question will yield better results in the future. Any person reading what you posted would think the same thing, I don't care what your real intentions were unless they were explained properly in the main post. I did give two solutions that were not spoon-feeding code or googling things for you, put some effort into it.
If you had spoon-fed me anything, I wouldn't use it, it just isn't right and nobody can learn from that.
Sorry, you need to Log In to post a reply to this thread.