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
Adds large cardboard boxes #11706
Adds large cardboard boxes #11706
Conversation
…s of cardboard. Cardboard boxes are closets that: *Can only carry a single person *Are easy to destroy *Are flammable *Can't be welded shut They can also can be used for more "tactical" purposes, at the same speed as walking. Takes the opportunity to remove some object unfriendly coding. If this is accepted they'll be a pull a little later to replace a few closets on the maps with boxes (or maybe code to have generic closets on the map to occasionally spawn as boxes instead).
There's no sprites yet 🙈 |
👍 |
Please make them look like the cardboard cutout of a lizard maid if you run with them on. |
godlike 👍 |
! |
if runtime is near a large cardboard box she should run inside it |
Ha.. |
! |
Now have cardboard boxes in maint and suddenly shadowlings hiding in cardboard boxes is new meta |
Make it so you can attach a poster to it when standing up with it and walking around. 👍 |
👍 Nienhaus comes up trumps with a sprite again. Dis gun be good. |
Excellent Nienhaus, age hasn't slowed you down one bit |
There needs to be a subtype of this box that has a "!" sound play when you open it. |
@Incoming5643 Later tonight I'm going to improve that. I spent like 10 minutes on it this morning when I woke up. |
… sprite(s) coming) Every roundstart generic locker now has a 20% chance of instead being a cardboard box (this is not the same thing as "20% of all lockers are now boxes" but it's a rough approximation). As an easter egg, if you open a box containing a person everyone in sight will get a ! alert. This effect can only be triggered if someone other than the person in the box is the one who opens it. As a further safeguard against spamming this can happen at most once every minute.
Alright well I implemented the old sprite anyways, but if you get something better drawn just post it here and I'll update it. Also added the ! easter egg in this commit |
Done. Also fairly obvious to anyone who looks at the the code but no, as far as I can tell we can't use THE sound for the alert easter egg, I can't find anything on its licensing, which probably means it was in house. |
Yay! |
@Incoming5643 we can do a very close replica + idk i think parody act??? |
It should be partially invisible to sec officers at range |
|
||
/obj/structure/closet/New() | ||
..() | ||
if(type == /obj/structure/closet && ticker && ticker.current_state == GAME_STATE_PREGAME && prob(20)) //only roundstart generic closets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't this be put under closet/initialize()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably. I wasn't 100% sure if structures that were created during the initialization step would be properly initialized themselves, so I just stuck with New()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems to be a really shitty thing for anyone who maps. As you can no longer properly map a crate that will actually be a crate for sure.
Would be a lot better with some new item that has chance to be a crate or cardboard box, and then editing that to the map. Instead of forcing 20% of crates that are and ever will be to be a cardboarbox.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's only generic closets, the grey ones with nothing on them that are found almost exclusively in maintenance. All crates are still crates, and all special lockers are still those lockers.
I can do that later and revert this bit, it's just nothing screams "This will conflict for the next six weeks" quite like a map change that touches a lot of tiles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this in initialise or remove it and PR it later.
Merge chances missed: 1.
They should make you unable to be tracked by the AI like agent cards yes/yes/yes? |
@RemieRichards Merge pls |
egg_cooldown = 1 | ||
spawn(600) | ||
egg_cooldown = 0 | ||
..() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh im fine with people sneaking around in cardboard boxes but this is an """easter egg""" that triggers literally any time a box with a mob in it is opened, which is pretty shitty and will get obnoxious really fast.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's actually only once per minute.
but yeah this is obnoxious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it could be a subtype that does it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It only happens when the person who opens the box ISN'T the person in the box. But yeah originally it was going to opperate on a low probability chance or only be able to activate once per box.
What would be more palatable to people?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(prob(TCMB*0.5)) for maximum unreadability :^)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it once every 5 minutes?
Come in from downwind, then pull up fast! Get ready to fast rope down to Shell One! Five minutes to ETA! Alpha, your top priority is to rescue and safeguard the President! Team Bravo, watch out for Stillman's back, and get those C4's disarmed!
|
||
/obj/structure/closet/cardboard/relaymove(mob/user, direction) | ||
if(opened || move_delay || user.stat || user.stunned || user.weakened || user.paralysis || !isturf(loc) || !has_gravity(loc)/*|| Kawanishi-Noseguchi || Kinunobebashi || Takiyama || Uguisunomori || Tsuzumigataki || Tada || Hirano || Ichinotorii || Uneno || Yamashita || Sasabe || Kofudai || Tokiwadai || Myokenguchi*/) | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!
Blame me not being terribly familiar with how animations work. You don't want to know how long it took me just to see that little ! work right. But yeah calling non existent parents probably isn't required 👶 |
! |
alerted << sound('sound/machines/chime.ogg') //HQ HQ! | ||
egg_cooldown = 1 | ||
spawn(3000) | ||
egg_cooldown = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't all this egg cooldown be something along the lines of
if(egg_cooldown < world.time)
And then egg_cooldown = world.time + 3000
Instead of using spawn?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then I'd have to code in midnight rollover protection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that spess y2k
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
basically yeah
! |
I've noticed a very confusing trend where the more lackadaisical and impulsive a pull request I make the more scrutiny it comes under. It's just a booooooooooox. |
More like |
Could you fold these large cardboard boxes? Y'know, for... Tactical uses. |
Plz remove silly comments |
You may pick one to be removed, but whichever you spare must remain enshrined. |
fuckin' finally |
Adds large cardboard boxes to the game, constructable from four sheets of cardboard. Roughly 20% of all generic closets on the map will now instead spawn as these.
Cardboard boxes are closets that:
They can also can be used for more "tactical" purposes, at the same speed as walking.
Takes the opportunity to remove some object unfriendly coding.