mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-25 21:31:37 +00:00
Add fence stuff to q2bsp, for Kingpin support.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6291 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
77f5f7adc1
commit
de644a5384
3 changed files with 20 additions and 1 deletions
|
@ -322,6 +322,16 @@ keyname_t keynames[] =
|
||||||
{"GP_RTHUMB_LEFT", K_GP_RIGHT_THUMB_LEFT},
|
{"GP_RTHUMB_LEFT", K_GP_RIGHT_THUMB_LEFT},
|
||||||
{"GP_RTHUMB_RIGHT", K_GP_RIGHT_THUMB_RIGHT},
|
{"GP_RTHUMB_RIGHT", K_GP_RIGHT_THUMB_RIGHT},
|
||||||
|
|
||||||
|
#ifdef Q2BSPS
|
||||||
|
//kingpin compat
|
||||||
|
{"ESC", K_ESCAPE},
|
||||||
|
{"B_SPACE", K_BACKSPACE},
|
||||||
|
{"U_ARROW", K_UPARROW},
|
||||||
|
{"D_ARROW", K_DOWNARROW},
|
||||||
|
{"L_ARROW", K_LEFTARROW},
|
||||||
|
{"R_ARROW", K_RIGHTARROW},
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef QUAKETC
|
#ifndef QUAKETC
|
||||||
//dp compat
|
//dp compat
|
||||||
{"X360_DPAD_UP", K_GP_DPAD_UP},
|
{"X360_DPAD_UP", K_GP_DPAD_UP},
|
||||||
|
|
|
@ -639,8 +639,15 @@ typedef struct
|
||||||
#define TI_TRANS66 0x20
|
#define TI_TRANS66 0x20
|
||||||
#define TI_FLOWING 0x40 // scroll towards angle
|
#define TI_FLOWING 0x40 // scroll towards angle
|
||||||
#define TI_NODRAW 0x80 // don't bother referencing the texture
|
#define TI_NODRAW 0x80 // don't bother referencing the texture
|
||||||
|
//#define TI_HINT 0x100 // handled by tools, engine can ignore.
|
||||||
|
//#define TI_SKIP 0x200 // handled by tools, engine can ignore.
|
||||||
|
|
||||||
#define TI_ALPHATEST 0x100
|
//#define TI_KINGPIN_SPECULAR 0x400
|
||||||
|
//#define TI_KINGPIN_DIFFUSE 0x800
|
||||||
|
#define TI_KINGPIN_ALPHATEST 0x1000 //regular alphatest
|
||||||
|
//#define TI_KINGPIN_MIRROR 0x2000
|
||||||
|
//#define TI_KINGPIN_WNDW33 0x4000
|
||||||
|
//#define TI_KINGPIN_WNDW64 0x8000
|
||||||
|
|
||||||
//Surface flags
|
//Surface flags
|
||||||
//#define Q3SURFACEFLAG_NODAMAGE 0x1 // never give falling damage
|
//#define Q3SURFACEFLAG_NODAMAGE 0x1 // never give falling damage
|
||||||
|
|
|
@ -1438,6 +1438,8 @@ static qboolean CModQ2_LoadTexInfo (model_t *mod, qbyte *mod_base, lump_t *l, ch
|
||||||
Q_strncatz(sname, "#ALPHA=0.66", sizeof(sname));
|
Q_strncatz(sname, "#ALPHA=0.66", sizeof(sname));
|
||||||
else if (out->flags & TI_TRANS33)
|
else if (out->flags & TI_TRANS33)
|
||||||
Q_strncatz(sname, "#ALPHA=0.33", sizeof(sname));
|
Q_strncatz(sname, "#ALPHA=0.33", sizeof(sname));
|
||||||
|
else if (out->flags & TI_KINGPIN_ALPHATEST) //kingpin...
|
||||||
|
Q_strncatz(sname, "#MASK=0.666#MASKLT", sizeof(sname));
|
||||||
else if (out->flags & (TI_WARP))
|
else if (out->flags & (TI_WARP))
|
||||||
Q_strncatz(sname, "#ALPHA=1", sizeof(sname));
|
Q_strncatz(sname, "#ALPHA=1", sizeof(sname));
|
||||||
if (in->nexttexinfo != -1) //used to ensure non-looping and looping don't conflict and get confused.
|
if (in->nexttexinfo != -1) //used to ensure non-looping and looping don't conflict and get confused.
|
||||||
|
|
Loading…
Reference in a new issue