Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function int MetroidClientVars(void)
- {
- int doomHealth = !!GetCVar("metroid_cl_doomhealth");
- int runrunruu = !!GetCVar("cl_run");
- return (doomHealth << 1) + runrunruu;
- }
- script METROID_ENTER ENTER
- {
- [SNIP SNIP IRRELEVANT SHIT]
- while (1)
- {
- [SNIP SNIP SNIP]
- // Clientside shit
- if (array_doomHealth[pln]) { GiveInventory("DoomHealthCounter", 1); }
- else { TakeInventory("DoomHealthCounter", 0x7FFFFFFF); }
- if (array_runrunruu[pln]) { GiveInventory("AlwaysRunIsOn", 1); }
- else { TakeInventory("AlwaysRunIsOn", 0x7FFFFFFF); }
- [ALL THE SNIP]
- delay(1);
- }
- }
- script METROID_ENTER_CLIENTSIDE ENTER clientside
- {
- int execInt, oExecInt, execStr;
- int pln = PlayerNumber();
- while(1)
- {
- oExecInt = execInt;
- execInt = MetroidClientVars();
- if (execInt != oExecInt)
- {
- execStr = StrParam(s:"puke -", d:METROID_PUKE, s:" ", d:execInt, s:" ", d:pln);
- ConsoleCommand(execStr);
- }
- delay(1);
- }
- }
- script METROID_PUKE (int values, int pln) net
- {
- array_runrunruu[pln] = values & 1;
- array_doomHealth[pln] = values & 2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement