my first script
-
the idea of this script is to make the c4 stronger in multiplayer custom games with bots. the script loads correctly however it does not work as intended. it makes all players not deal any damage no matter the weapon, or the players don't take any damage for some reason.
init()
{
level.callbackplayerdamagestub = level.callbackplayerdamage;
level.callbackplayerdamage = ::satchelchargeDamage;
}satchelchargeDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset )
{
if (sWeapon == "satchel_charge_mp")
{
iDamage = 350;
explosionRadius = 500;
minDamage = 200;} self [[level.callbackplayerdamagestub]](eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset);}
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login