This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/engine/light.cpp b/src/engine/light.cpp | |
index 8f0ac8a8..3ec5b5d2 100644 | |
--- a/src/engine/light.cpp | |
+++ b/src/engine/light.cpp | |
@@ -8,22 +8,22 @@ void setlightdir(vec &dir, float yaw, float pitch) | |
clearradiancehintscache(); | |
} | |
-#define PIESKYVARS(name, type) \ | |
- CVARF(IDF_WORLD, sunlight##name, 0, \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/engine/light.cpp b/src/engine/light.cpp | |
index 8f0ac8a8..d4442c77 100644 | |
--- a/src/engine/light.cpp | |
+++ b/src/engine/light.cpp | |
@@ -8,22 +8,22 @@ void setlightdir(vec &dir, float yaw, float pitch) | |
clearradiancehintscache(); | |
} | |
-#define PIESKYVARS(name, type) \ | |
- CVARF(IDF_WORLD, sunlight##name, 0, \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/engine/light.cpp b/src/engine/light.cpp | |
index 8f0ac8a8..fbcb15df 100644 | |
--- a/src/engine/light.cpp | |
+++ b/src/engine/light.cpp | |
@@ -9,18 +9,18 @@ void setlightdir(vec &dir, float yaw, float pitch) | |
} | |
#define PIESKYVARS(name, type) \ | |
- CVARF(IDF_WORLD, sunlight##name, 0, \ | |
+ CVARF(IDF_WORLD|IDF_VARIANT, sunlight##name, 0, \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void copyvariants(bool rev = false, bool all = false, int skip = 0) | |
{ | |
vector<ident *> variantvars; | |
enumerate(idents, ident, id, if(id.flags&IDF_VARIANT) variantvars.add(&id)); | |
variantvars.sortname(); | |
loopv(variantvars) | |
{ | |
if ((strlen(variantvars[i]->name) <= 3)) | |
{ | |
variantvars.remove(i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from discord.ext import commands | |
import discord | |
import json | |
import requests | |
#import logging | |
import asyncio | |
from datetime import datetime | |
api_term = "https://api.urbandictionary.com/v0/define?term=" | |
api_rand = "https://api.urbandictionary.com/v0/random" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# usage: ./movieplatter.py <path to video> | |
import sys | |
import cv2 | |
import numpy as np | |
video = cv2.VideoCapture(sys.argv[1]) | |
width = 512 | |
pixels = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/engine/octaedit.cpp b/src/engine/octaedit.cpp | |
index d811006d..34bd910c 100644 | |
--- a/src/engine/octaedit.cpp | |
+++ b/src/engine/octaedit.cpp | |
@@ -2597,6 +2597,22 @@ ICOMMAND(0, getvcolour, "i", (int *tex), | |
result(str); | |
}); | |
+void vcolouralt(float *r, float *g, float *b) | |
+{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lazyshader 0 "haze" (fsvs) [ | |
// depth based heat-haze | |
uniform float millis; | |
uniform vec4 params; | |
uniform sampler2DRect tex0; | |
@(gfetchdefs tex9) | |
varying vec2 texcoord0; | |
fragdata(0) vec4 fragcolor; | |
vec4 lerp(vec4 a, vec4 b, float w) { return a + w*(b-a); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import random, requests | |
from requests_html import HTMLSession | |
from wand.image import Image | |
from wand.drawing import Drawing | |
from wand.color import Color | |
wikipedia = "https://en.wikipedia.org/wiki/Special:Random" | |
quotation = "http://www.quotationspage.com/random.php" | |
flickr = "https://www.flickr.com/explore/interesting/7days" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/weapons.h b/src/game/weapons.h | |
index 7be1ecf0..a2eaa2c0 100644 | |
--- a/src/game/weapons.h | |
+++ b/src/game/weapons.h | |
@@ -954,6 +954,23 @@ WPFVARK(IDF_GAMEMOD, 0, partlen, 0, FVAR_MAX, | |
0.0f, 8.0f, 0.0f, 10.0f, 15.0f, 0.0f, 0.0f, 1024.0f, 512.0f, 0.0f, 4.0f, 0.0f, 0.0f, | |
0.0f, 16.0f, 0.0f, 10.0f, 50.0f, 0.0f, 0.0f, 1024.0f, 1024.0f, 0.0f, 4.0f, 0.0f, 0.0f | |
); | |
+ | |
+WPSVAR(IDF_GAMEMOD, 0, projmodel, |
NewerOlder