Plugin Available Damage boost

Unpaid Requests, Public Plugins
User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 2016
Joined: 3 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 117 times
Age: 22
Contact:

Re: Damage boost

#11

Post by Raheem » 2 Years Ago

Not good but ok i'll write it for you.
Loading Raheem's signature, Please wait...
Image

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 2 Years Ago
Has thanked: 2 times
Been thanked: 1 time
Age: 19
Contact:

#12

Post by Rain1153 » 2 Years Ago

ok thanks
LOL

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 2016
Joined: 3 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 117 times
Age: 22
Contact:

#13

Post by Raheem » 2 Years Ago

OK here it's:

Code: Select all

#include <zombie_escape>

// Pointers
new g_pCvarDmgMultiplier

public plugin_init()
{
	register_plugin("Damage Control", "1.0", "Raheem")
	
	// HookChains
	RegisterHookChain(RG_CBasePlayer_TakeDamage, "Fw_TakeDamage_Post", 1)
	
	// Cvars
	g_pCvarDmgMultiplier = register_cvar("ze_multiplier_damage_factor", "2") // Multiplie Weapon Damage
}

public Fw_TakeDamage_Post(iVictim, iInflictor, iAttacker, Float:flDamage, bitsDamageType)
{
	if (!is_user_alive(iVictim) || !is_user_alive(iAttacker))
		return HC_CONTINUE
	
	if (iVictim == iAttacker)
		return HC_CONTINUE
	
	if (get_member(iAttacker, m_iTeam) == get_member(iVictim, m_iTeam))
		return HC_CONTINUE
	
	if (get_member(iAttacker, m_iTeam) == TEAM_TERRORIST)
		return HC_CONTINUE
	
	SetHookChainArg(4 , ATYPE_FLOAT, flDamage * get_pcvar_num(g_pCvarDmgMultiplier))

	return HC_CONTINUE
}
Loading Raheem's signature, Please wait...
Image

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 2 Years Ago
Has thanked: 2 times
Been thanked: 1 time
Age: 19
Contact:

#14

Post by Rain1153 » 2 Years Ago

there is no code for a status? :/ I wanted players to know what he/she is doing
LOL

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 2016
Joined: 3 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 117 times
Age: 22
Contact:

#15

Post by Raheem » 2 Years Ago

Explain
Loading Raheem's signature, Please wait...
Image

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 2 Years Ago
Has thanked: 2 times
Been thanked: 1 time
Age: 19
Contact:

#16

Post by Rain1153 » 2 Years Ago

i mean there is no hud msg to show the damage done! or left to gain 2x dmg
LOL

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 2 Years Ago
Has thanked: 2 times
Been thanked: 1 time
Age: 19
Contact:

#17

Post by Rain1153 » 2 Years Ago

you don't get the idea bro... The plugin is to multiply damage when the dmg done is equal to "cvar" And it should show a hud msg or stat to show how much damage is remaining to be done to gain 2x dmg and it must reset in cvar time if no additional damage is done!
LOL

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 2016
Joined: 3 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 117 times
Age: 22
Contact:

#18

Post by Raheem » 2 Years Ago

I don't understand now what to do, What relation between this plugin that make ×2 damage and damage bar? Also explain with examples what you need i don't get you well.
Loading Raheem's signature, Please wait...
Image

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 2 Years Ago
Has thanked: 2 times
Been thanked: 1 time
Age: 19
Contact:

#19

Post by Rain1153 » 2 Years Ago

I mean look, We can do damages to zombies right?
so we make the plugin read the damages done and when the damage done reaches a required damage "set in cvars example 5000 dmg " the damage doer must get 2x dmg after that after that if he doesnt do additional damage the damage status decreases for example he did 6000 damage > 5k dmg so he got 2x and now he doesnt do any damage so the damage status decreases after a " cvar time" . Also i wanted to see a hud messsage showing the damage like in the original plugin of damage boost.Please read the original plugin.Idea is same as the original but only you have to do is that remove the killiing zombie and get 2x thing and add "cvar damage " so when the damage done by us reaches "cvar damage" then we get 2x only!
LOL

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest