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

[Exiled 9] The honored one😭 #133

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from
Open

[Exiled 9] The honored one😭 #133

wants to merge 14 commits into from

Conversation

IRacle1
Copy link

@IRacle1 IRacle1 commented Oct 11, 2024

Description

Describe the changes

  • API for ChangeAppearance, with posibility to change player appearance globaly/individualy/for specific team
  • SendingRole as part of that API, for changing target role appearance for specific player
  • Projectile API changes, it was a my mistake to create a grenade prefab for each item, i deleted that unsafe part, and created new cool methods, and reorganized others.
  • Fixed Scp018 projectile states for activating it using Projectile::Activate
  • IProjectileEvent
  • ChangedNickname,ThrowingProjectile,Scp079::LosingSignal,Scp079::LostSignal, Scp929::CreatedAmnesticCloudEventArgs events
  • Fixed PickupSyncInfo nw equality check\
  • Fixed adding Scp330 using Player::AddItem(ItemType.Scp330)
  • Scp939::ValidatingVisibility rework
  • Player::UseItem logic rework(not destroying item, same for consumables)
  • CopyProperties fix

What is the current behavior? (You can also link to an open issue here)
😭😭😭

What is the new behavior? (if this is a feature change)
📈📈📈

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:
to lazy to write things like appearance api detailed, so in discord🤯


Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentations

Submission checklist

  • I have checked the project can be compiled
  • I have tested my changes and it worked as expected

Patches (if there are any changes related to Harmony patches)

  • I have checked no IL patching errors in the console

Other

  • Still requires more testing

Copy link

@VALERA771 VALERA771 left a comment

Choose a reason for hiding this comment

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

I believe that this is a good changes (I didn't read all of them)

EXILED/Exiled.API/Extensions/MirrorExtensions.cs Outdated Show resolved Hide resolved
@VALERA771 VALERA771 added the Do not merge Don't merge this PR label Oct 11, 2024
Copy link

@louis1706 louis1706 left a comment

Choose a reason for hiding this comment

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

I need to talk with you about pickup change and the appearance restriction / code

Comment on lines 43 to 67
/// <summary>
/// Gets or sets the maximum radius of the grenade.
/// </summary>
public float MaxRadius
{
get => Projectile.MaxRadius;
set => Projectile.MaxRadius = value;
}
public float MaxRadius { get; set; }

/// <summary>
/// Gets or sets the multiplier for damage against <see cref="Side.Scp"/> players.
/// </summary>
public float ScpDamageMultiplier
{
get => Projectile.ScpDamageMultiplier;
set => Projectile.ScpDamageMultiplier = value;
}
public float ScpDamageMultiplier { get; set; }

/// <summary>
/// Gets or sets how long the <see cref="EffectType.Burned"/> effect will last.
/// </summary>
public float BurnDuration
{
get => Projectile.BurnDuration;
set => Projectile.BurnDuration = value;
}
public float BurnDuration { get; set; }

/// <summary>
/// Gets or sets how long the <see cref="EffectType.Deafened"/> effect will last.
/// </summary>
public float DeafenDuration
{
get => Projectile.DeafenDuration;
set => Projectile.DeafenDuration = value;
}
public float DeafenDuration { get; set; }

/// <summary>
/// Gets or sets how long the <see cref="EffectType.Concussed"/> effect will last.
/// </summary>
public float ConcussDuration
{
get => Projectile.ConcussDuration;
set => Projectile.ConcussDuration = value;
}

/// <summary>
/// Gets or sets how long the fuse will last.
/// </summary>
public float FuseTime
{
get => Projectile.FuseTime;
set => Projectile.FuseTime = value;
}
public float ConcussDuration { get; set; }

Choose a reason for hiding this comment

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

Why ? This change would be needed ?

Copy link
Author

Choose a reason for hiding this comment

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

I originally didn't want to change the Projectile API structure, but still came to the conclusion that storing prefabs for throwables was a bad idea from the point of view of all cases😭
And removing it and writing all the properties and their relations correctly, is much more safer

EXILED/Exiled.Events/Patches/Generic/Scp018Properties.cs Outdated Show resolved Hide resolved
@louis1706
Copy link

Why removing unitid argument?

@IRacle1
Copy link
Author

IRacle1 commented Oct 23, 2024

I need to talk with you about pickup change and the appearance restriction / code

ok, when youll be free?

@louis1706
Copy link

I need to talk with you about pickup change and the appearance restriction / code

ok, when youll be free?

On discord just dm me

else
{
// Doesn't really affect anything
writer.WriteUShort(400);

Choose a reason for hiding this comment

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

It's the zombie health show on client

Choose a reason for hiding this comment

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

I just think to a point where it wouldn't be useless is when the player is spectated

Copy link

@louis1706 louis1706 left a comment

Choose a reason for hiding this comment

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

if possible some of your change could be integrated in Exiled 8

@adarkaz
Copy link

adarkaz commented Nov 9, 2024

image
no way new scp 929

@louis1706
Copy link

image no way new scp 929

where ?

@@ -59,7 +59,7 @@ public static class Round
/// <summary>
/// Gets a value indicating whether the round is lobby or not.
/// </summary>
public static bool IsLobby => !(IsEnded || IsStarted);
public static bool IsLobby => ReferenceHub.LocalHub != null && !(IsEnded || IsStarted);

Choose a reason for hiding this comment

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

that useless change right ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API base-game-bug Bug from the main game Do not merge Don't merge this PR Events Transpiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants