Skip to content

Instantly share code, notes, and snippets.

View csprance's full-sized avatar
🐝

Chris Sprance csprance

🐝
View GitHub Profile
@csprance
csprance / xNormalHelpers.py
Created January 12, 2016 17:58 — forked from Farfarer/xNormalHelpers.py
Just a few helper bits for xNormal/python.
#!/usr/bin/env python
import lx
import subprocess
import os
# Paths for xNormal.
path_xnormal_basedir = r'C:\Program Files\Santiago Orgaz'
path_xnormal_exedir = r'\x64\xNormal.exe'
path_xnormal = r'C:\Program Files\Santiago Orgaz\xNormal 3.18.9\x64\xNormal.exe'
#!/usr/bin/env python
################################################################################
#
# open_bling_command_class.py
# Description: The Qt GUI for OpenBling
# Usage:
# Author: Chris Sprance Entrada Interactive
#
################################################################################
#!/usr/bin/env python
################################################################################
#
# explosivo_class.py
# Description: The class used for toggling a mesh morph from 100% to -100%
# Usage:
# Explosivo.toggle - toggles the explode map on the selected meshes
# Explosivo.toggle other_explode_morph_name - toggles the explode on the selected meshes
# but uses a custom named morph map
# (if nothing selected everything is selected)
#!/usr/bin/env python
################################################################################
#
# explosivo_class.py
# Description: The class used for toggling a mesh morph from 100% to -100%
# Usage:
# Explosivo.toggle - toggles the explode map on the selected meshes
# Explosivo.toggle other_explode_morph_name - toggles the explode on the selected meshes
# but uses a custom named morph map
# Explosivo.delete removes the morphs on all meshes instead of toggling them
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# title :miscron.py
# description : Runs commands to a server
# author :Chris Sprance / Entrada Interactive
# usage : This script is CLI for server administaration to run it from a command line do:
# misrcon.py -i [ip] --port [admin port] -p [admin password] --command [command] --time [exec_time] --s [schedule]
# python_version :2.7.5
# ==============================================================================
import xmlrpclib
@csprance
csprance / startup.py
Last active December 20, 2016 19:56
Drop this in editor/Python/plugins/csSimBrush/startup.py
# @author Chris Sprance
# @Description Open the window from Tools->csTools->csSimBrush
# select a brush and click Convert Brush To SimBrush and it will sim and fall
# Move the object and press simulate again to simualte again
# Click Convert SimBrush to Brush to convert the selected simBrush back to a regular brush
from CrySide import QtWidgets
import SandboxBridge
from sandbox import general
@csprance
csprance / ckeditor.js
Last active April 12, 2017 15:54
Directus CKEditor WYSIWYG
// Description: CKEditor Custom UI for Directus
// Author: Chris Sprance (Entrada Interactive) - www.csprance.com
// CKEditor Docs: http://docs.ckeditor.com/
define(['app', 'core/UIComponent', 'core/CustomUIView', 'core/t', 'core/overlays/overlays'], function (app, UIComponent, UIView, __t, Overlays) {
var Input = UIView.extend({
events: {},
template: 'ckeditor/input',
serialize: function () {
/**
* Name: rconUtils
* Created by chris on 4/26/2017.
* Description: Sends a command to a Miscreated server and parses the response
* // RCON Steps
* --- 1 ---
* // Request: challenge
* // Response: uptime
* --- 2 ---
* // Request: md5(uptime:password)
@csprance
csprance / MiscreatedCVARHelp.md
Last active November 12, 2021 14:11
Miscreated Servers RCON commands and server configuration help

Miscreated Servers

RCON commands and server configuration help

Available Commands:

  • sv_servername "Name of server in quotes"
  • wm_timeScale 3 How Fast time moves
  • wm_forceTime -1 Force a current time
  • g_pinglimit 0 Ping required to join
@csprance
csprance / textwriter.py
Last active October 20, 2017 19:26
Modo Script to write a bunch of letters
http://www.csprance.com/shots/letters_master.lxo