Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 59ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
l

l4d2

Recently created Least recently created Recently updated Least recently updated
jackz

jackz / test: move to player

Last active 13 hours ago l4d2

makes player redirect movement to the nearest other player

0 0 1
1 float targetPos[MAXPLAYERS+1][3];
2 int targetEnt[MAXPLAYERS+1];
3
4 static char STORE_KEY[] = "SEND_TO_HEAVEN";
5
6 void SendToHeaven_OnActivate(int apologizer, int target, const char[] eventId) {
7 Handle h = CreateTimer(1.0, Timer_Levitate, GetClientUserId(apologizer), TIMER_REPEAT);
8 SorryStore[apologizer].SetBool(STORE_KEY, true);
9 }