Raised This Month: $51 Target: $400
 12% 

[CS:GO] Changing damage of Molotov nade


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
crewparadise
Member
Join Date: Jun 2015
Location: Seoul, South Korea
Old 06-05-2015 , 06:01   [CS:GO] Changing damage of Molotov nade
Reply With Quote #1

I'm currently running Zombie Escape server in CSGO, so looked for many method for changing damage but there are no for molotov, Please help me
crewparadise is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 06-05-2015 , 07:14   Re: [CS:GO] Changing damage of Molotov nade
Reply With Quote #2

Tried using SDKHOOKS OnTakeDamage to get the "inflictor" which in this case is molotov and change the damage value?
__________________
ecca is offline
cam0
Senior Member
Join Date: Feb 2015
Old 06-05-2015 , 07:34   Re: [CS:GO] Changing damage of Molotov nade
Reply With Quote #3

Code:
public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float damage, int &damagetype) {     char inflictorClass[32];     char attackerClass[32];     GetEdictClassname(inflictor, inflictorClass, sizeof(inflictorClass));     GetEdictClassname(attacker, attackerClass, sizeof(attackerClass));         if(strlen(inflictorClass) > 0 || strlen(attackerClass) > 0)     {         PrintToServer("\n[DEBUG] Player %N took damage from a %s using %s\n", victim, inflictorClass);     }         return Plugin_Continue; }

This will log to console what entity does damage to a player with what weapon.

It should give you the info you need. Then you can multiply damage by 2 or whatever.
cam0 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:21.


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