-
Notifications
You must be signed in to change notification settings - Fork 1
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 loadouts to operators #1
Comments
@PandaDriver156 I have published a branch - https://github.com/danielwerg/r6data/tree/feat/operator-weapon-loadouts. Will start working on defenders, fork that branch instead of master. |
Thanks, I'll start working on attackers tomorrow then. |
Not sure what is a best way to handle "forced" attachments. Here is few example to show what I mean: https://github.com/danielwerg/r6data/blob/feat/operator-weapon-loadouts/src/operators/caveira/index.ts#L46 Just going to leave comments for now. |
I'm using this regex while refactoring: |
https://github.com/PandaDriver156/r6data/tree/operator-weapon-loadouts
Thanks, it really did save a lot of time. Should I open a PR? If yes, which branch should be targeted? |
Awesome, I thinks there so much we can do for |
I'm not good at naming things, but maybe something like this? - export const COMMON_BARRELS = [
- 'flash_hider',
- 'compensator',
- 'muzzle_brake',
- 'suppressor',
- 'extended_barrel'
- ] satisfies BarrelSlug[];
+ export const COMMON_BARRELS_NO_EXTENDED_BARREL = [
+ 'flash_hider',
+ 'compensator',
+ 'muzzle_brake',
+ 'suppressor'
+ ] satisfies BarrelSlug[];
+ export const COMMON_BARRELS_ALL = [
+ 'flash_hider',
+ 'compensator',
+ 'muzzle_brake',
+ 'suppressor',
+ 'extended_barrel'
+ ] satisfies BarrelSlug[]; |
Feature
Each operator should have their own loadout.
marcopixel/r6operators#6
Ideal solution or implementation
Show
src/operators/recruit_attack/index.ts
:src/operators/types.ts
:Other context
Handle forced attachments
Examples:
https://github.com/danielwerg/r6data/blob/feat/operator-weapon-loadouts/src/operators/caveira/index.ts#L46
https://github.com/danielwerg/r6data/blob/feat/operator-weapon-loadouts/src/operators/echo/index.ts#L42
https://github.com/danielwerg/r6data/blob/feat/operator-weapon-loadouts/src/operators/ela/index.ts#L49
The text was updated successfully, but these errors were encountered: