This is an addon created for Rust:IO. In order to use this plugin, you need to install Rust:IO first!
Please keep in mind that this is a one-way relationship, so both players have to add each other as friends to enable it mutually (just like also sharing positions works).
There is a config file located at config/FriendlyFire.json which contains all translatable strings. Simply edit the right hand side of the translations, but always keep the %PLACEHOLDERS% intact and untranslated.
Please keep in mind that this is a one-way relationship, so both players have to add each other as friends to enable it mutually (just like also sharing positions works).
Commands
This plugin provides both chat and console commands using the same syntax. When using a command in chat, prefix it with a forward slash: `/`.- /ff -- Displays your current friendly fire status
- /ff on|off -- Toggles friendly fire on or off (default)
Configuration
The settings and options can be configured in the RustIOFriendlyFire file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.There is a config file located at config/FriendlyFire.json which contains all translatable strings. Simply edit the right hand side of the translations, but always keep the %PLACEHOLDERS% intact and untranslated.
For Developers
- EnableBypass(playerId:ulong|string):bool
Bypasses FriendlyFire for the specified player (player will be able to hurt everyone including his friends) - DisableBypass(playerId:ulong|string):bool
Disables the former (falls back to default behavior)
TODO
- Add [Description(...)] attribute containing a brief description
- Move messages from configuration to language file
- Remove unnecessary ResourceId
- Remove unnecessary [HookMethod(...)] attributes
- Remove unnecessary Log(...), Warn(...) and Error(...) wrapper methods