33#define DEBUG
44
55#define PLUGIN_AUTHOR " BattlefieldDuck"
6- #define PLUGIN_VERSION " 4.6 "
6+ #define PLUGIN_VERSION " 4.7 "
77
88#include <sourcemod>
99#include <sdkhooks>
@@ -184,6 +184,7 @@ public Action Command_EquipPhysicsGun(int client, int args)
184184
185185 TF2_RemoveWeaponSlot (client , WEAPON_SLOT );
186186 DispatchSpawn (weapon );
187+
187188 EquipPlayerWeapon (client , weapon );
188189 }
189190
@@ -532,10 +533,6 @@ int Duplicator(int iEntity)
532533 SetEntProp (iNewEntity , Prop_Send , " m_nSkin" , GetEntProp (iEntity , Prop_Send , " m_nSkin" ));
533534 SetEntPropString (iNewEntity , Prop_Data , " m_iName" , szName );
534535
535- GetEntPropVector (iNewEntity , Prop_Send , " m_vecOrigin" , fOrigin );
536-
537- PrintCenterTextAll (" %f %f %f " , fOrigin [0 ], fOrigin [1 ], fOrigin [2 ]);
538-
539536 return iNewEntity ;
540537 }
541538
@@ -576,11 +573,11 @@ stock void ClientSettings(int client, int &buttons, int &impulse, float vel[3],
576573 //Fix client eyes angles
577574 if (buttons & IN_RELOAD || buttons & IN_ATTACK3 )
578575 {
579- if (! (GetEntityFlags (client ) & FL_FROZEN )) SetEntityFlags (client , (GetEntityFlags (client ) | FL_FROZEN ));
576+ if (! (GetEntityFlags (client ) & FL_FROZEN )) SetEntityFlags (client , (GetEntityFlags (client ) | FL_FROZEN ));
580577 }
581578 else
582579 {
583- if (GetEntityFlags (client ) & FL_FROZEN ) SetEntityFlags (client , (GetEntityFlags (client ) & ~ FL_FROZEN ));
580+ if (GetEntityFlags (client ) & FL_FROZEN ) SetEntityFlags (client , (GetEntityFlags (client ) & ~ FL_FROZEN ));
584581 }
585582 }
586583 else
@@ -596,9 +593,9 @@ stock void ClientSettings(int client, int &buttons, int &impulse, float vel[3],
596593 {
597594 SDKUnhook (client , SDKHook_WeaponCanSwitchTo , BlockWeaponSwitch );
598595
599- if (GetEntProp (client , Prop_Send , " m_iHideHUD" ) & HIDEHUD_WEAPONSELECTION ) SetEntProp (client , Prop_Send , " m_iHideHUD" , GetEntProp (client , Prop_Send , " m_iHideHUD" ) &~ HIDEHUD_WEAPONSELECTION );
596+ if (GetEntProp (client , Prop_Send , " m_iHideHUD" ) & HIDEHUD_WEAPONSELECTION ) SetEntProp (client , Prop_Send , " m_iHideHUD" , GetEntProp (client , Prop_Send , " m_iHideHUD" ) &~ HIDEHUD_WEAPONSELECTION );
600597
601- if (GetEntityFlags (client ) & FL_FROZEN ) SetEntityFlags (client , (GetEntityFlags (client ) & ~ FL_FROZEN ));
598+ if (GetEntityFlags (client ) & FL_FROZEN ) SetEntityFlags (client , (GetEntityFlags (client ) & ~ FL_FROZEN ));
602599 }
603600}
604601
0 commit comments