Completed Better FF | NY JB (1 Viewer)

Status
Not open for further replies.

tres

Well-Known Member
Joined
Feb 10, 2020
Messages
47
Fixes team lag compensation (I believe, I haven't tested this out) and add more weapons that work with FF.
PROS:
- Able to hit teammates much more accurately.
- A vast majority of weapons are now available to kill your team.

CONS:
- There may be a mass blu teamkill when abused.

Plugin's Github (SMX in /plugin)

File in /gamedata named data.friendlyfire.txt is needed in order to work properly. Otherwise, the plugin will throw a fail error. (Line 97 on fff.sp)


fff.sp github
C++:
// Able to edit and configure what projectile can be used in Friendly Fire.

static const String:g_sPvPProjectileClasses[][] =
{
    //"tf_projectile_pipe_remote",
    //"tf_projectile_cleaver",
    "tf_projectile_rocket",
    "tf_projectile_sentryrocket",
    "tf_projectile_arrow",
    "tf_projectile_stun_ball",
    "tf_projectile_ball_ornament",
    "tf_projectile_energy_ball",
    "tf_projectile_energy_ring",
    "tf_projectile_flare",
    "tf_projectile_healing_bolt",
    "tf_projectile_jar",
    "tf_projectile_jar_milk",
    "tf_projectile_pipe",
    "tf_projectile_syringe"
};


C++:
/* This is kind of important, and where I am confused about SoruceMod.
Im hoping that mp_friendlyfire isnt overwritten onto an admin var.
If mp_friendlyfire isn't overwritten, then this should work with the JB plugin flawlessly without any changes.
*/
public OnPluginStart()
{
    mp_friendlyfire = FindConVar("mp_friendlyfire");
    HookConVarChange(mp_friendlyfire, CvarChange);

    RegAdminCmd("sm_fff", cmdFriendlyFireToggle, ADMFLAG_CHEATS, "sm_friendlyfire <on/off> - Toggles mp_friendlyfire status.");
    RegAdminCmd("sm_friendlyfire", cmdFriendlyFireToggle, ADMFLAG_CHEATS, "sm_friendlyfire <on/off> - Toggles mp_friendlyfire status.");

    Gamedata_OnPluginStart();
}

The plugin was made by Chdata and Kit O'Rifty.
 
Medic is virtually overpowered with our current FF plugin. Almost every other class melee and most guns don't like working at the moment.

This would be a great add, but the one con is scary. Flamethrowers and other fixed weapons will now eliminate your teammates.
This means Blus will have to way more careful with FF on. The problem with this is your average Blu IQ is about 6, and that leads to many problems.

Despite the one minor problem, it should be added. This gives other classes a chance and maybe HG won't be medic hell anymore.
You should also probably test the plugin beforehand to see if it actually works.
 
Sure, sounds good. Task #186 add better friendly fire plugin for jailbreak.
 
  • Like
Reactions: Addster
installed - should be active on next mapchange - let me know incase there are issues.
 
  • Friendly
Reactions: Addster
Status
Not open for further replies.

Users who are viewing this thread