Skip to content

Instantly share code, notes, and snippets.

View caligari87's full-sized avatar

Sterling Parker caligari87

View GitHub Profile
@caligari87
caligari87 / zscript.zsc
Created July 3, 2020 15:12
really inefficient "voxel" fire for GZDoom
version "4.3"
class TestFireSpawner : actor {
int fire[8][8][16];
color firecolor;
double scale;
int ticker;
int maxtick;
override void postbeginplay() {
@caligari87
caligari87 / mapinfo.txt
Last active June 29, 2020 00:05
Focus Zoom / AimSway - Adds passive aim sway and focuses the player's FOV if holding [zoom] button and not moving. Put both files in a pk3 or wad.
gameinfo {
AddEventHandlers = "C87_Zoom_BootStrap"
}
@caligari87
caligari87 / mapinfo.txt
Last active July 31, 2019 18:40
Oops All Marines: Small mutator for Hideous Destructor that makes all monsters into enemy marines.
gameinfo {
AddEventHandlers = "OopsAllMarines"
}
@caligari87
caligari87 / mapinfo.txt
Created June 13, 2019 04:37
Simple death fader for GZDoom. Put both files into a .pk3 or .wad.
GameInfo {
AddEventHandlers = "DeathFadeBootstrap"
}
@caligari87
caligari87 / gldefs.txt
Last active April 18, 2019 13:07
Attenuated version of Josh771's "subdued lights". Simply put gldefs.txt in a wad or pk3 file and load it instead of GZDoom's default light definitions.
// Bullet puff
flickerlight BPUFF1
{
color 0.25 0.25 0.0
size 8
secondarySize 11
chance 0.8
attenuate 1
}
@caligari87
caligari87 / nitevis.fp
Last active September 13, 2021 22:14
Custom nightvision shader for Hideous Destructor. Put the nitevis.fp file into a .pk3 and load after HD.
// (C) 2019 Sterling Parker (aka "Caligari87")
// This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
//
// The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
// Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
// This notice may not be removed or altered from any source distribution.
//
// zlib License: https://opensource.org/licenses/Zlib
@caligari87
caligari87 / github.md
Created February 8, 2019 14:46
No idea what I'm doing with this

Hello GitHub my old friend I've come to push to you again Because an idea softly creeping Left it's seeds while I was sleeping And the function that was planted in my brain still remains within the lines of conflicts

@caligari87
caligari87 / NOT.md
Last active January 18, 2019 14:36
NOT (This OR That)

In the landscape of programming languages, Quick Basic resides upon a mountain, surrounded by mists, and insulated from the world beyond.

At a far extreme, on the other end of the world, should you travel that far, you will find the most intelectually eloquent language ever invented, LISP. In the realm of LISP, from the Basic programmers perspective, things look strange and soft. Symbols are tangled and twisted, and yet somehow slowly unfold under the light of reason. From the high refuge of Quick Basic, LISP doesn't even look like programming. Only the long journey down the mountain and across the wilds of deformed and crippled scripting languages can shape your eyes to see the beauty of a LISP proccessor as it slowly meditates upon itself, always looking inward upon its own mathematical truth. But that is a far way off.

Within view, upon a craggy spire of hard rock, many have seen C. Encrusted upon brittle rock, it is etched by the flow of magma, continually belching sulphur and cracking into new formatio

@caligari87
caligari87 / modlist.md
Last active May 24, 2021 19:43
List of the mods I commonly use with Hideous Destructor

List of the mods I commonly use with Hideous Destructor. Crossed-out mods are ones I don't use much anymore but might appear from time to time. Using some of these may require knowledge of GZDoom modding and/or packing pk3/wad files.

Gameplay

Visuals

@caligari87
caligari87 / zscript.zsc
Last active October 7, 2018 17:32
An example mutator for Ugly as Sin
// This class hooks into a player's UaS_Looting_Handler to add loot to an existing loot-list.
// NOTE: New loot lists for new/unsported actors are not possible at this time.
// WARNING: A mutator like this must be loaded AFTER Ugly as Sin or a crash will occur!
// Instructions:
// As this is only an example, it will not run automatically.
// (that part is left as an exercise for the modder)
// Once both UaS and this mutator are loaded, open the ingame console and type
// give UaS_Example_Loot_Extender