Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immobilized While Casting #1839

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

Valo56
Copy link
Contributor

@Valo56 Valo56 commented May 12, 2024

When a player activates an ability, they are immobilized for 1.5 seconds. No other effects are applied during this. The old requirement that players not have any action queued up when an ability finished was removed, as this was janky (WASD did not cause a failure, only click moving).

Most abilities have a cast time beyond 1.5 seconds, notably tame and resurrect abilities. Players being able to move during this time however is fine. The point is to reduce/eliminate the Benny Hill combat system we have now so that we can begin balancing around a system that doesn't have people running in circles.

The immobilize only applies to PC's who are not in space mode, as this isn't an issue in space.

@@ -273,6 +273,11 @@ void CompleteActivation(string id, float abilityRecastDelay)
CheckForActivationInterruption(activationId, position);
SetLocalInt(activator, activationId, (int)ActivationStatus.Started);

if (GetIsPC(activator) && !Space.IsPlayerInSpaceMode(activator))
{
ApplyEffectToObject(DurationType.Temporary, EffectCutsceneImmobilize(), activator, 1.5f);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any real significance to 1.5 seconds? Do you want to account for heavy armor here? I.E longer immobilize time compared to light?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For abilities with cast times 1.5 seconds is usually the lowest they go (pretty sure that's what throw lightsaber is at). 1.5 seconds should be enough time for, if someone is trying to kite an enemy who is right behind them, for them to both be stopped and for the enemy chasing them to begin a flurry of attacks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants