@@ -282,7 +282,7 @@ protected void UpdateFireInput()
282282 {
283283 if ( ! ConstructingBuildingEntity )
284284 {
285- if ( PlayerCharacterEntity . CallServerAttack ( isLeftHandAttacking ) )
285+ if ( PlayerCharacterEntity . Attack ( isLeftHandAttacking ) )
286286 isLeftHandAttacking = ! isLeftHandAttacking ;
287287 }
288288 }
@@ -408,9 +408,9 @@ protected void ReloadAmmo()
408408 {
409409 // Reload ammo at server
410410 if ( ! PlayerCharacterEntity . EquipWeapons . rightHand . IsAmmoFull ( ) )
411- PlayerCharacterEntity . CallServerReload ( false ) ;
411+ PlayerCharacterEntity . Reload ( false ) ;
412412 else if ( ! PlayerCharacterEntity . EquipWeapons . leftHand . IsAmmoFull ( ) )
413- PlayerCharacterEntity . CallServerReload ( true ) ;
413+ PlayerCharacterEntity . Reload ( true ) ;
414414 }
415415
416416 public override void UseHotkey ( HotkeyType type , string relateId , Vector3 ? aimPosition )
@@ -438,7 +438,7 @@ protected void UseSkill(string id, Vector3? aimPosition)
438438
439439 bool isAttackSkill = skill . IsAttack ( ) ;
440440 AimPosition skillAimPosition = AimPosition . Create ( aimPosition ) ;
441- if ( PlayerCharacterEntity . CallServerUseSkill ( skill . DataId , isLeftHandAttacking , skillAimPosition ) && isAttackSkill )
441+ if ( PlayerCharacterEntity . UseSkill ( skill . DataId , isLeftHandAttacking , skillAimPosition ) && isAttackSkill )
442442 {
443443 isLeftHandAttacking = ! isLeftHandAttacking ;
444444 }
@@ -496,7 +496,7 @@ protected void UseItem(string id, Vector3? aimPosition)
496496 {
497497 bool isAttackSkill = ( item as ISkillItem ) . UsingSkill . IsAttack ( ) ;
498498 AimPosition skillAimPosition = AimPosition . Create ( aimPosition ) ;
499- if ( PlayerCharacterEntity . CallServerUseSkillItem ( ( short ) itemIndex , isLeftHandAttacking , skillAimPosition ) && isAttackSkill )
499+ if ( PlayerCharacterEntity . UseSkillItem ( ( short ) itemIndex , isLeftHandAttacking , skillAimPosition ) && isAttackSkill )
500500 {
501501 isLeftHandAttacking = ! isLeftHandAttacking ;
502502 }
0 commit comments