-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Carrying - Handle simultaneously carry action (#99)
* Make sure on the server side that the owner is in fact not already carried * Use replicated variables for determining if someone is carrier/carried * Correct comment * Check on server if target in fact not carried
- Loading branch information
Showing
4 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
addons/carrying/Scripts/Game/ACE_Carrying/Character/SCR_CharacterControllerComponent.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
//------------------------------------------------------------------------------------------------ | ||
modded class SCR_CharacterControllerComponent : CharacterControllerComponent | ||
{ | ||
[RplProp()] | ||
protected bool m_bACE_Carrying_IsCarrier = false; | ||
[RplProp()] | ||
protected bool m_bACE_Carrying_IsCarried = false; | ||
|
||
//------------------------------------------------------------------------------------------------ | ||
void ACE_Carrying_SetIsCarrier(bool isCarrier) | ||
{ | ||
m_bACE_Carrying_IsCarrier = isCarrier; | ||
Replication.BumpMe(); | ||
} | ||
|
||
//------------------------------------------------------------------------------------------------ | ||
bool ACE_Carrying_IsCarrier() | ||
{ | ||
return m_bACE_Carrying_IsCarrier; | ||
} | ||
|
||
//------------------------------------------------------------------------------------------------ | ||
void ACE_Carrying_SetIsCarried(bool isCarried) | ||
{ | ||
m_bACE_Carrying_IsCarried = isCarried; | ||
Replication.BumpMe(); | ||
} | ||
|
||
//------------------------------------------------------------------------------------------------ | ||
bool ACE_Carrying_IsCarried() | ||
{ | ||
return m_bACE_Carrying_IsCarried; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters