Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/13/2019 in all areas

  1. Here is a code example if you want to see how to code for UE4. This is a function of our custom action system, it starts the execution of a action performed by a character in the game, be it a player or AI controlled one. You see that the function exits out if it's a pure client side action. This is because this code actually only runs on the server and never on the client. We use UE4's authoritative server model for cheat protection. // Starts the action. void ALifeLeechAction::Start(APawn* InitiatorPawn, AController* InitiatorController, AActor* TargetActor, FVector TargetVector) { // Don't execute if this action is only running on the client side. if (PureClientSide == true) { return; }; // check for cooldown if (CooldownLeft > 0.0f) { return; }; // check if another action is executed if this action is not allowed to overlap another one if ((CanOverlap == false) && (InitiatorController != nullptr)) { ALifeLeechGamePlayerController* Controller = Cast<ALifeLeechGamePlayerController>(InitiatorController); if (Controller != nullptr) { if (Controller->ActionInProgress == true) { return; } else { Controller->ActionInProgress = true; }; }; }; // Set initiator and target variables for later use. AcInitiatorPawn = InitiatorPawn; AcInitiatorController = InitiatorController; AcTargetActor = TargetActor; AcTargetVector = TargetVector; // Call OnStart event for BP override. OnStart(); // Mark action as started. Started = true; // Mark action as in progress. InProgress = true; // Activate tick, if action should tick. if (TickAfterStart) { PrimaryActorTick.SetTickFunctionEnable(true); }; }
    2 points
  2. Texas -> yellow rose heh... remember this song being the alarm on my first ever lcd watch
    1 point
  3. Kyra is clubbing Kevin Senseless P I K A C
    1 point
  4. Paging through all of the posts on this thread has been wonderful, although I will admit that I am not a fan of 'savory' in my ice creams or similar. The lone exceptions so far have been a really outstanding 70% cacao, macadamia nut, and chili ice cream with flaked coconut, and a Tobasco pepper sauce & vanilla (with bean) ice cream that was paired with a deep fried maple sugar waffle (so basically the waffle portion tasted like it already had Canadian or Vermont syrup in it) and had a ganache coating (this one went very, very well with a pork loin with raspberry habanero compote as the main course). Edit: My brother, who is an executive chef, made those two. He also served them to the current Secretary of Health and Human Services for the United States, who had a dinner conference recently at his establishment (My poor brother was in charge of the entire operation that night, his first event after a promotion, for such a major personality - everything from how the table service would be run to appetizers and working with the sommelier well in advance for wines).
    1 point
×
×
  • Create New...
Please Sign In or Sign Up