50DKP / FF2-Official

Freak Fortress 2 is a one versus all mod for Team Fortress 2. It is the successor to the Vs. Saxton Hale plugin.
https://forums.alliedmods.net/forumdisplay.php?f=154
GNU General Public License v3.0
54 stars 27 forks source link

Named argument support #493

Closed naydef closed 5 years ago

naydef commented 5 years ago

Someone needs to test that, my server has his usual rest Also, some other changes will be done

These natives are added:

FF2_GetArgNamedI
FF2_GetArgNamedF
FF2_GetArgNamedS

Example:

"ability1"
{
    "name"      "rage_something"

    "slot" "0"
    "distance" "32.0"
    "arg1"      "32.0" //Backward compatibility

    "plugin_name"   "subplugin_something"
}

Edit: At least regular argument format works. Time to test named one Edit2: Working! Yeey