Skip to content

Instantly share code, notes, and snippets.

@T-Maxxx
Last active April 23, 2023 04:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save T-Maxxx/50cfdfa5a6eeefbd6ca7e434d1c80b71 to your computer and use it in GitHub Desktop.
Save T-Maxxx/50cfdfa5a6eeefbd6ca7e434d1c80b71 to your computer and use it in GitHub Desktop.
IW3 engine UI script "operands" complete list
NOOP
)
*
/
%
+
-
!
<
<=
>
>=
==
!=
&&
||
(
,
&
|
~
<<
>>
sin(<val>)
cos(<val>)
min(<val1>, <val2>)
max(<val1>, <val2>)
milliseconds()
dvarint(<dvar>)
dvarbool(<dvar>)
dvarfloat(<dvar>)
dvarstring(<dvar>)
stat(<num>)
ui_active()
flashbanged()
scoped()
scoreboard_visible()
inkillcam()
player(<arg>), where <arg> one of {teamname, otherteamname, dead, clipAmmo, nightvision, score, deaths, kills, assists, ping}. "ping" arg is useless - just prints error to console.
selecting_location()
team(<team num>)(<team parameter>), where <team num> is a number, I believe, from 0 to 3 (team enum value). Single value means on of ingame teams: axis (1), allies (2), spectator, free (maybe in other sequence). <team parameter> is one of {score, name}. No idea how to call that but still.
otherteam(<team num>), opposite to "team" with same args.
marinesfield(<team parameter>)
opforfield(<team parameter>)
menuisopen(<menu name>)
writingdata(), useless
inlobby(), useless
inprivateparty(), useless
privatepartyhost(), useless
privatepartyhostinlobby(), useless
aloneinparty(), useless
adsjavelin(), true if you aims with javelin lol. IW3MP, yea.
weaplockblink(<float>), useless. Always returns 0.
weapattacktop(), useless. Always returns 0.
weapattackdirect(), useless. Always returns 0.
secondsastime(<int>), returns time string. Format: "Xd Yh Zm",
tablelookup(<table name>, <lookup column num>, <lookup string>, <return column num>), searches csv table with name <table name> for row with value <lookup string> at column <lookup column num> and returns string value from column <return column num>.
locstring(<loc string>), returns localized version of <loc string>.
localvarint(<local var name>)
localvarbool(<local var name>)
localvarfloat(<local var name>)
localvarstring(<local var name>)
timeleft()
secondsascountdown(), returns time to round end in format "MM:SS"
gamemsgwndactive(<num>), where <num> from [0; 3]
int(<value>)
string(<value>)
float(<value>)
gametypename()
gametype()
gametypedescription()
scoreatrank(<num>)
friendsonline(), useless
spectatingclient(), 1 if currently spectating, else 0.
statrangeanybitsset(<unknown>)
keybinding(<int, string, float or key descriptor?>)
actionslotusable(<slot num>), where <slot num> from [0, 4].
hudfade(<arg>), where <arg> from {dpad, compass, scoreboard, weapon}
maxrecommendedplayers(), useless
acceptinginvite(), useless
isintermission()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment