Skip to content

Instantly share code, notes, and snippets.

#teleport to a player
import minqlx
class goto(minqlx.Plugin):
def __init__(self):
self.add_command("goto", self.cmd_goto, usage="<id>")
haste = ("df_handbreaker4", "handbreaker4_long", "handbreaker", "df_piyofunjumps",
"df_luna", "df_nodown", "df_etleague", "df_extremepkr", "labyrinth", "airmaxjumps",
#q2/et save/load position feature
#usage: bind key say !savepos, bind key say !loadpos
import minqlx
HASTE = ("df_handbreaker4", "handbreaker4_long", "handbreaker", "df_piyofunjumps", "df_verihard", "insane1",
"df_luna", "df_nodown", "df_etleague", "df_extremepkr", "labyrinth", "airmaxjumps",
"sarcasmjump", "criclejump", "cursed_temple", "skacharohuth", "randommap", "just_jump_3",
"criclejump", "eatme", "funjumpsmap", "bounce", "just_jump_2", "wernerjump")
class saveload(minqlx.Plugin):
#gives grappling hook to player
import minqlx
class ghook(minqlx.Plugin):
def __init__(self):
self.add_command("hook", self.cmd_hook)
self.goto = {}
#personal timer to test different routes in sections of large maps
import minqlx
class racetimer(minqlx.Plugin):
def __init__(self):
self.add_hook("frame", self.handle_frame, priority=minqlx.PRI_LOWEST)
self.add_hook("player_spawn", self.handle_player_spawn)
self.add_hook("player_disconnect", self.handle_player_disconnect)
self.add_command("starttimer", self.cmd_starttimer)
self.add_command("stoptimer", self.cmd_stoptimer)
@x0rnn
x0rnn / myirc.py
Last active August 31, 2021 12:47
# minqlx - A Quake Live server administrator bot.
# Copyright (C) 2015 Mino <mino@minomino.org>
# This file is part of minqlx.
# minqlx is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
import minqlx
class dm17cup(minqlx.Plugin):
def __init__(self):
self.add_hook("vote_called", self.handle_vote_called)
self.add_hook("death", self.handle_death)
self.add_command("dm17cup", self.cmd_dm17cup)
def handle_vote_called(self, caller, vote, args):
if not (self.get_cvar("g_allowSpecVote", bool)) and caller.team == "spectator":
-- tts.py by x0rnn, primitive TTS (text-to-speech) system based on arpabet (https://en.wikipedia.org/wiki/Arpabet)
-- use with https://github.com/x0rnn/etpro/blob/master/lua/tts.pk3 and https://github.com/x0rnn/etpro/blob/master/lua/tts.txt
filename = "luascripts/tts.txt"
dict = {}
arpabet = ""
timers = {}
steps = {}
function et_InitGame(levelTime, randomSeed, restart)
@x0rnn
x0rnn / dyna.lua
Last active November 4, 2022 09:16
-- x0rnn: added dynamite "sudden death" mode
---------------------------------
------- Dynamite counter --------
------- By Necromancer --------
------- 5/04/2009 --------
------- www.usef-et.org --------
---------------------------------
SHOW = 0
spawnShield = 1 -- seconds
levelTime = 0
hs_maps = {"purefrag", "et_headshot2_b2", "mp_sillyctf", "ctf_multi", "multi_huntplace", "badplace4_rc", "te_valhalla"}
flag = false
function has_value (tab, val)
for index, value in ipairs(tab) do
if value == val then
return true
end
@x0rnn
x0rnn / fueldump.script
Last active November 20, 2022 20:14
Fueldump with assault ramp
// ============================================================================
// Map: Fueldump
// Last update : 16/06/03 Sock
// ============================================================================
// rain - Tue Sep 23 20:24:55 EDT 2003 - fixed setautospawns
// bani - Mon Jan 5 23:45:25 PST 2004 - allied spawn at garage commandpost
// x0rnn - added assault ramp (fuelramp.pk3 is required on the server! Download: https://github.com/x0rnn/etpro/blob/master/mapscripts/maps/fuelramp.pk3)
game_manager