--default mode: etpro b_realHead 1 if arg1 == "0" then etHook:Printf( "ETPRO Mode 0 (b_realHead 1) set.\n" ); etHook:Cvar_SetValue( "rs_hitbox_head", "2" ); etHook:Cvar_SetValue( "rs_hitbox_body", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_x", "-1" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_z", "6.5" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_x", "-1" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_z", "6.5" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_x", "1.5" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_y", "-1" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_z", "6.5" ); currentMode = 0; --mode 1: etpro b_realHead 0 elseif arg1 == "1" then etHook:Printf( "ETMAIN/ETPRO Mode 1 (b_realHead 0) set.\n" ); etHook:Cvar_SetValue( "rs_hitbox_head", "0" ); etHook:Cvar_SetValue( "rs_hitbox_body", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_x", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_z", "4" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_x", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_z", "4" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_x", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_z", "4" ); currentMode = 1; --mode 2: etpub g_realHead 1 elseif arg1 == "2" then etHook:Printf( "ETPUB Mode 2 FIXED (g_realHead 1) set.\n" ); etHook:Cvar_SetValue( "rs_hitbox_head", "2" ); etHook:Cvar_SetValue( "rs_hitbox_body", "1" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_x", "1" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_y", "-1" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_z", "6.5" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_x", "1" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_y", "-1" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_z", "6.5" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_x", "2" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_z", "6.5" ); currentMode = 2; --mode 3: etpub g_realHead 0 elseif arg1 == "3" then etHook:Printf( "ETPUB Mode 3 UNFIXED (g_realHead 0) set.\n" ); etHook:Cvar_SetValue( "rs_hitbox_head", "1" ); etHook:Cvar_SetValue( "rs_hitbox_body", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_x", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_z", "4" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_x", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_z", "4" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_x", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_z", "4" ); currentMode = 3; --mode 4: jaymod g_hitboxes 0 elseif arg1 == "4" then etHook:Printf( "JAYMOD Mode 4 (g_hitboxes 0) set.\n" ); etHook:Cvar_SetValue( "rs_hitbox_head", "0" ); etHook:Cvar_SetValue( "rs_hitbox_body", "2" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_x", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_z", "4" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_x", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_z", "4" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_x", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_z", "4" ); currentMode = 4; --mode 5: universal realhead mode elseif arg1 == "5" then etHook:Printf( "Universal REALHEAD Mode 5 set.\n" ); etHook:Cvar_SetValue( "rs_hitbox_head", "4" ); etHook:Cvar_SetValue( "rs_hitbox_body", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_x", "0.5" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_z", "6.5" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_x", "0.5" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_crouch_z", "6.5" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_x", "0.5" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_y", "0" ); etHook:Cvar_SetValue( "rs_hitbox_headcorr_prone_z", "6.5" ); currentMode = 5;