AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   (CS) Incrase damage done? (https://forums.alliedmods.net/showthread.php?t=22730)

devDude 01-02-2006 18:56

(CS) Incrase damage done?
 
Is there any simple way to incrase damage done by weapons (or taken when hit by one). I searched for instagib mods and like "incrase weapon damage" but i couldnt find anything so i decided to make a post. I need some sort of instagib mod for a LAN party where we are gonna play some fun CS.

I just want atleast one averenge-speed weapon (like deagle) to cause more then 100 damage per hit (anywhere on the body) and preferably more like 30 bullets per magazine.

Please dont reply with stupid comments or stuff that i cant use in any way, like writing "Its not that simple" in a nice way is ok, "HAHA ITS NOT THAT SIMPLE FUCKING LOOSER" aint that nice. -> Serious answers only <-

Pasting just the code and let me compile is ok, precompilled plugins is fine aswell.

XxAvalanchexX 01-02-2006 19:19

Yes, you can register the Damage event, see who hit them and what weapon they have, and if it is the weapon you want take more health away from the user.

If you need someone to make an entire plugin for you then you should probably post in the Suggestions / Requests forum.

v3x 01-02-2006 22:05

I made a function that does extra damage and handles the death message and such, but it's for custom weapons..

devDude 01-03-2006 08:01

I need it this friday, so i dont think it would be the best idea to post an "idea" and wait for someone to make it. And i dont have time to learn the scripting required to script it myself, but i do have averenge coding expirience so if someone just showed an example of how i do it i could do the plugin myself.

I kinda want it to affect ALL weapons, im making an "arena"-like map which im gonna combine with CSDM and this "instagib mod" to make the game alot faster and more fun :)

thanks.

Obbin 01-03-2006 08:29

That sounds fun!
Maybe you can do something width this, it increases the damage of weapons (for admins, you coud change that easley)

http://forums.alliedmods.net/showthread.php?t=8437

devDude 01-03-2006 08:40

Oh nice, gonna take a look at it and see if i can modify it.

devDude 01-03-2006 09:23

Got it working by modifying that.

If anyone wants this plugin ill upload it here, but keep in mind the original author is BlueRaja, and all credits goes to him. I just removed all rcon and admin checks for the multipliers and modified some values.

It now multiplies all damage done by 10 times, which means one shot from a glock or anything will kill the target. A headshot could do like.. 2000-3000 damage :)
Anyway, thanks to BlueRaja for a great plugin, hope you dont mind this modification.

IF YOU WANT THIS MOD, PLEASE REPLY HERE!
I WONT ADD IT BEFORE YOU REPLY BECAUSE I AM NOT THE ORIGINAL AUTHOR.

Original mod:
Code:
 /*Name:  Weapon Multiplier Author:  BlueRaja About 10-20% of this code was stolen from Warcraft3 mod - credit, therefore, should go to its author(s).  Thanks guy(s)! Other than that...I'd like to give shout out to Damaged Soul..thanks for helping me out all these times, and for putting up with all my crazy shit Very Happy ***VARIABLES***: sv_highnadedam - admins with ADMIN_HIGH get this much damage added to their HE grenade.  Remember, it's a percentage (0.5 = 50% MORE damage, 1.99 = 199% MORE damage , etc.) sv_lownadedam - admins with ADMIN_LOW get this much damage added to their HE grenade.  Again, it's a percentage. sv_highgundam - admins with ADMIN_HIGH get this much damage added to their gun shots.  Remember, it's a percentage. sv_lowgundam - I think you get the idea */


All times are GMT -4. The time now is 16:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.