Folder_Punishment - official-antistasi-community/A3-Antistasi GitHub Wiki

Punishment

Full path : A3-Antistasi/functions/Punishment
Parent : functions


Popular Console Commands

Ping cursorObject with FF Warning
[cursorObject, 0, 0, objNull, "This is just a Test. Please remain calm."] remoteExec ["A3A_fnc_punishment",2];
Punish cursorObject, 120 additional seconds
[cursorObject,120, 1] remoteExec ["A3A_fnc_punishment",2];
Test Self Punish, 10 additional seconds
[player,10, 1] remoteExec ["A3A_fnc_punishment",2];
Forgive all sins of cursorObject & self
[getPlayerUID cursorObject,"forgive"] remoteExec ["A3A_fnc_punishment_release",2];
[getPlayerUID player,"forgive"] remoteExec ["A3A_fnc_punishment_release",2];

Summary

Scans for FF between rebel players and Petros. (Petros is never guilty; Petros rightfully shot you.)
Designed for Multiplayer use with parameter tkPunish enabled.
Throw call A3A_fnc_punishment_FF_addEH; into whatever object init you like! (See function for details on AI usage)

  • Adds EHs for Punishment FF check.
  • Checks if a grenade or an explosive has been created near Petros.
  • Confirms if the damage or shot reported is a FF event.
  • Places the guilty player onto a surfboard randomly within 100m from the corner.
  • Sends a one-time notification to any admin that someone has being found guilty of FF.
  • Adds an action to the Admin's action menu to forgive the player.

Functions

class Punishment

Name Description
outOfBounds Kills player if they leaves the playable area.
punishment Force punish, no questions.
punishment_addActionForgive Detainee and Admin.
punishment_checkStatus Inprison upon joining.
punishment_FF Checks: sides; victim; collision; admin; CAS;
punishment_FF_checkNearHQ Throw nades or place explosive.
punishment_FF_addEH Recommended entry point. Adds hooks.
punishment_oceanGulag Throws detainee on surfboard.
punishment_release Forgive & release.
punishment_removeActionForgive Anti-addAction.
punishment_sentence_client Timer box.
punishment_sentence_server Controls OceanGulag and Timer box.

Author: Caleb Serafin, Håkon Rydland
Date Updated: 07 November 2020
License: MIT License, Copyright (c) 2019 Barbolani & The Official AntiStasi Community

⚠️ **GitHub.com Fallback** ⚠️