AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Improve damage (https://forums.alliedmods.net/showthread.php?t=121857)

Legend 03-20-2010 13:26

Improve damage
 
How can I improve damage over all (with all weapons) and how can I do it with a single weapon (Please easiest code to do this!)

Thanks you!

wrecked_ 03-20-2010 13:28

Re: Improve damage
 
Look at the source code of a knife extra damage plugin. I've seen three of them out there. Don't just come straight to Scripting Help.

ConnorMcLeod 03-20-2010 13:28

Re: Improve damage
 
hook Ham_TakeDamage and change damage value.

Legend 03-20-2010 13:32

Re: Improve damage
 
Quote:

Originally Posted by wrecked_ (Post 1123469)
Look at the source code of a knife extra damage plugin. I've seen three of them out there. Don't just come straight to Scripting Help.

Link?

Ohh and how can I do a player invisible, I checked some plugins but I can't find the command :S

wrecked_ 03-20-2010 13:41

Re: Improve damage
 
Quote:

Originally Posted by Legend (Post 1123477)
Link?

https://forums.alliedmods.net/showth...t=extra+damage

It's a help section on it. Forgot where I'd seen it before. There's multiple ones. Search extra knife damage.


Quote:

Originally Posted by Legend (Post 1123477)
Ohh and how can I do a player invisible, I checked some plugins but I can't find the command :S

set_user_rendering

Legend 03-20-2010 13:45

Re: Improve damage
 
Okay thanks, gotta check it out!

Legend 03-21-2010 15:20

Re: Improve damage
 
Hmm, I can't really now fingure out how to do it! Anyone there can make a little tutorial to it?

wrecked_ 03-21-2010 15:25

Re: Improve damage
 
What weapon are you trying to increase the damage of?

wrecked_ 03-21-2010 19:35

Re: Improve damage
 
All Damage Increased:
Code:
#include <amxmodx> #include <hamsandwich> #define EXTRA_DAMAGE    50 public plugin_init() {     register_plugin( "Extra Damage", "1.0", "Wrecked" ) // :avast:         // 0 for pre, 1 for post     RegisterHam( Ham_TakeDamage, "player", "HAM_TakeDamage_Pre" ) } public HAM_TakeDamage_Pre( iVictim, attacker, iInflictor, float:damage, dmgbits ) {     SetHamParamFloat( 4, Float:damage + EXTRA_DAMAGE )         return HAM_IGNORED; }


All times are GMT -4. The time now is 08:41.

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