Giter Club home page Giter Club logo

grad-spectator's Introduction

GRAD Spectator Version GRAD Spectator License

GRAD-Spectator

Summary

GRAD Spectator is a mod for Arma Reforger that enables a spectator mode via respawn or manually.

Warning

Use at your own risk. This mod is only for testing and still under development.

Features

  • custom action to enable spectator (GRAD_SpectatorUserAction)
  • 6 flag poles (2x US, 2x USSR, 2x FIA) with spectator action attached for World Editor
  • 3 flag poles (US, USSR, FIA) with spectator action attached for Game Master
  • custom spectator spawn logic (enter spectator after first death)
  • custom keybind to leave spectator (END - can be configured in keybinds)

How to enable/disable spectator via script

// enable/disable spectator no matter if executed on server or client

SCR_PlayerController playerController;
playerController = SCR_PlayerController.Cast(GetGame().GetPlayerManager().GetPlayerController(playerId));

playerController.EnableSpectator();

playerController.DisableSpectator();

How to configure MenuSpawnLogic (ignore that the screenshots say "SpectatorSpawnLogic")

  1. Add a loadout to every faction in your gamemode that can be assigned to spectators (In LoadoutManager)
  2. Change the MenuSpawnLogic settings in the SCR_RespawnSystemComponent of your GameMode (configure the spectator loadout assignments and enter the name of the spectator spawn point)
  3. Place a spawn point without faction in your world and sets its name like in the SpawnLogic
Screenshot 2023-10-14 170308 Screenshot 2023-10-14 170208 Screenshot 2023-10-14 165704

Links

License

GRAD Undead is licensed under the (APL).

grad-spectator's People

Contributors

y0014984 avatar

Watchers

 avatar  avatar

grad-spectator's Issues

GM mode support

Add a GM mode support in a form of an interactable, placable object or any other form that you deem fit for the GM mode to support the spectator function.

GRAD_SpectatorSpawnLogic doesn't initialize mission

Using GRAD_SpectatorSpawnLogic class as the spawn logic in SCR_RespawnLogicSystemComponent prevents the world file from initializing in SCR_BaseGameMode.

I'm not sure if this has been broken since 1.0 release as I've used it successfully prior to 1.0 release, but currently, using the spectator spawn logic doesn't allow the mission to initialize. The error.log shows nothing specific but I can provide one if needed.

I've narrowed it down to the spawn logic as changing it to menu spawn logic or auto spawn logic allows the mission to initialize.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.