Skip to content

Instantly share code, notes, and snippets.

-- 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)
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":
@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.
#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)
#gives grappling hook to player
import minqlx
class ghook(minqlx.Plugin):
def __init__(self):
self.add_command("hook", self.cmd_hook)
self.goto = {}
#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):
#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",