-
Download Blender (version 2.79 or 2.81):
2.79: https://download.blender.org/release/Blender2.79/
2.81: https://download.blender.org/release/Blender2.81/ -
SMC Blender addon (2.79/2.81): https://github.com/SalatielSauer/Blender-SMC-Exporter-updated
-
Move the io_export_smc.py file to the folder blender-2.61-release-(...)/2.61/scripts/addons
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
VARP(editinview, 0, 1, 1); | |
bool noedit(bool view, bool msg) | |
{ | |
if(!editmode) { if(msg) conoutf(CON_ERROR, "operation only allowed in edit mode"); return true; } | |
if(view || haveselent()) return false; | |
float r = 1.0f; | |
vec o = sel.o.tovec(), s = sel.s.tovec(); | |
s.mul(float(sel.grid) / 2.0f); | |
o.add(s); | |
r = float(max(s.x, max(s.y, s.z))); |
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
//MOD: Guiskin, Guisliderskin, Guialpha | |
char* cguiskin = "data/guiskin.png"; | |
FVARP(guiskin, "", {cguiskin = guiskin;}); | |
char* cguisliderskin = "data/guislider.png"; | |
FVARP(guisliderskin, "", {cguisliderskin = guisliderskin;}); | |
FVARP(guialpha, 0, 0.5, 1); | |
//END | |
void line_(int size, float percent = 1.0f) | |
{ |
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
// generates a string of tabs | |
// i.e. echo (concatword (gentabs 2) "hello" (gentabs 5) "world") | |
gentabs = [ | |
_gtabs = "" | |
loop t $arg1 [_gtabs = (concatword $_gtabs "^t")] | |
result $_gtabs | |
] | |
// moves a gui item to any position | |
// i.e. guiitemmove 0 -5 -15 [guititle "Hi"] |
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
//by Salatiel (salatielsauer.github.io) | |
getflag = [ | |
pcountry = (getcountry (getip $arg1)) ; | |
countries = ["undefined" "United Arab Emirates" "Afghanistan" "Armenia" "Angola" "Antarctica" "Argentina" "American Samoa" "Austria" "Australia" "Barbados" "Belgium" "Bangladesh" "Bulgaria" "Bermuda" "Bolivia" "Brazil" "Bahamas" "Canada" "Switzerland" "Chile" "Cameroon" "Colombia" "Costa Rica" "Cuba" "Cape Verde" "Christmas Island" "Germany" "Dominican Republic" "Algeria" "Ecuador" "Estonia" "Egypt" "Spain" "Ethiopia" "Finland" "France" "Georgia" "Guinea" "Greece" "Guatemala" "Hong Kong" "Haiti" "Hungary" "Indonesia" "Israel" "India" "Iraq" "Italy" "Jamaica" "Japan" "Cayman Islands" "Lithuania" "Madagascar" "Mexico" "Nigeria" "Netherlands" "Nepal" "Peru" "Poland" "Puerto Rico" "Portugal" "Paraguay" "Romania" "Serbia" "Russian Federation" "Sudan" "Slovenia" "Turkey" "Ukraine" "Venezuela" "South Africa" "United States" "Norway" "United Kingdom" "Moldova, Republic of" "Kenya" "Iraq" "Liberia" "Pakistan" "Palestine" " |
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
int renderconsole(int w, int h, int abovehud) // render buffer taking into account time & scrolling | |
{ | |
int conpad = fullconsole ? 0 : FONTH/4, | |
conoff = fullconsole ? FONTH : FONTH/3, | |
conheight = min(fullconsole ? ((h*fullconsize/100)/FONTH)*FONTH : FONTH*consize, h - 2*(conpad + conoff)), | |
conwidth = w - 2*(conpad + conoff) - (fullconsole ? 0 : game::clipconsole(w, h)); | |
// console background | |
extern void bgquad(float x, float y, float w, float h, float tx, float ty, float tw, float th); | |
if(!fullconsole) |
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 gl_drawhud() | |
{ | |
// (...) | |
// Line 2229 | |
if(!mainmenu) | |
{ | |
drawdamagescreen(w, h); | |
drawdamagecompass(w, h); | |
hudshader->set(); |
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
function pixelsIntoRect(n, k){ | |
var max = ~~Math.sqrt(n); | |
return Array.from({length: max}, (_, i, a) => [n%(max-i), max-i]) | |
.sort((a, b) => a[0] - b[0]) | |
.slice(0, k) | |
.map(t => [Math.ceil(n/t[1]), t[1], (Math.ceil(n/t[1])*t[1])-n]) | |
.filter(a => Math.round(a[1]/a[0]) == 1) | |
.sort((a, b) => a[2] - b[2]) | |
} |
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
// Cube Deformer functions, by @Salatiel#5274 | |
// version: 23/01/2022 | |
// indexes: [+x, -x, +y, -y] | |
// [[movesel x, movesel y], [movesel dir, movesel dim]], camera yaw | |
.selfacesheet = [ | |
[[1 1][-1 1] 90] | |
[[0 0][1 1] -90] | |
[[1 0][1 0] 180] | |
[[0 1][-1 0] 0] |
OlderNewer