Team,
How can I increase the amount of damage that the Fireball, Lightning, or Meteor spells does for a particular client?
Goal: I use the Be the Merasmus and Be the Monoculus plugins on my server. They can cast the spells listed above. Since they are a Boss, I would like their spells to do 2 or 3 times the damage of a normal players spell.
Is this possible? If so, how?
Also on a related note... How can I increase the damage that the Monoculus eye rockets do?
I tried adding this in but it didn't work: SetEntPropFloat(iRocket, Prop_Send, "m_flDamage", 200.0);
Code:
bool:ShootRocket( iClient )
{
if( !IsValidClient( iClient ) || !bEyeStatus[iClient] )
return false;
new iRocket = CreateEntityByName("tf_projectile_rocket");
if( !IsValidEntity(iRocket) )
return false;
SetEntPropEnt( iRocket, Prop_Send, "m_hOwnerEntity", iClient );
SetEntPropEnt( iRocket, Prop_Send, "m_hLauncher", iClient );
SetEntProp( iRocket, Prop_Send, "m_bCritical", 1 );
static offsRocketDeflected = -1;
if( offsRocketDeflected == -1 )
offsRocketDeflected = FindSendPropOffs("CTFProjectile_Rocket", "m_iDeflected");
if( offsRocketDeflected != -1 )
SetEntDataFloat( iRocket, offsRocketDeflected+4, 50.0, true );
else
{
Error( ERROR_LOG, _, "Failed to set rocket damage!" );
return false;
}
DispatchSpawn( iRocket );
SetEntityModel( iRocket, strEyeModels[1] );
new Float:vecOrigin[3], Float:vecAngles[3], Float:vecVelocity[3], Float:flMult;
GetClientAbsOrigin( iClient, vecOrigin );
GetClientEyeAngles( iClient, vecAngles );
flMult = 56.0;
vecOrigin[0] += flMult * Cosine( DegToRad(vecAngles[1]) );
vecOrigin[1] += flMult * Sine( DegToRad(vecAngles[1]) );
vecOrigin[2] += 48.0 - flMult * Sine( DegToRad(vecAngles[0]) );
flMult = _:bEyeRage[iClient] ? 1500.0 : 500.0;
GetAngleVectors( vecAngles, vecVelocity, NULL_VECTOR, NULL_VECTOR );
NormalizeVector( vecVelocity, vecVelocity );
ScaleVector( vecVelocity, flMult );
TeleportEntity( iRocket, vecOrigin, vecAngles, vecVelocity );
return true;
}