Skip to content

Instantly share code, notes, and snippets.

@SeriousBuggie
SeriousBuggie / ut-linux-server.sh
Last active July 6, 2022 19:16
Simple script for run unreal tournament linux server
#!/bin/bash
# Simple script for run unreal tournament linux server
# required cron
# start automatically at server boot.
#
# Installation:
# 1. rename script to some unique name.
# 2. Put it in your UT directory.
# 3. Add it to your crontab, for run every minute.
#
@SeriousBuggie
SeriousBuggie / UT99-uc-helpers.md
Last active September 24, 2023 17:51
Useful helper functions for Uscript for UT99

Get screen X Y coordinates for specified Location:

simulated function float getXY(Canvas C, vector location, out int screenX, out int screenY) {
	local vector X, Y, Z, CamLoc, TargetDir, Dir, XY;
	local rotator CamRot;
	local Actor Camera;
	local float TanFOVx, TanFOVy;
	local float ret;

	C.ViewPort.Actor.PlayerCalcView(Camera, CamLoc, CamRot);