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

Add WorldRailgunPreFired and WorldRailFired virtual for railgun attacks #2824

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

Conversation

Cacodemon345
Copy link
Contributor

@Cacodemon345 Cacodemon345 commented Nov 20, 2024

This PR adds WorldRailgunPreFired virtual for railgun attacks, which can block them like WorldHitscanPreFired by return values, and WorldRailgunFired as the railgun-equivalent of WorldHitscanFired.

As WorldHitscanPreFired passes all LineAttack parameters, its railgun equivalent has been made to do the same for consistency reasons.

AttackLineFlags is now used for LineAttack flags information instead of DamageFlags.

Indentation in event.zs has been fixed again.

Add AttackLineFlags for WorldHitscanPreFired

Indentation fixes in event.zs
@MajorCooke
Copy link
Contributor

If this gets added in, WorldThingRailFired definitely should become a thing and WorldThingHitscan(Pre)Fired should be removed from rail attacks. Reiterating what was stated on Discord.

@Cacodemon345 Cacodemon345 changed the title Add WorldRailgunPreFired virtual for railgun attacks Add WorldRailgunPreFired and WorldRailFired virtual for railgun attacks Nov 21, 2024
@jekyllgrim
Copy link
Contributor

This is a good idea. Since fundamentally railguns and other hitscans are different functions, and it would be a good idea to be able to differentiate between them anyway, I approve of just having two separate sets of events.

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.

3 participants