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

Adds large cardboard boxes #11706

Merged
merged 5 commits into from Sep 24, 2015

Conversation

Incoming5643
Copy link
Contributor

341s6

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:

  • 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.

…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).
@Incoming5643
Copy link
Contributor Author

There's no sprites yet 🙈

@Iamgoofball
Copy link
Contributor

👍

@Nitrousoxide
Copy link

Please make them look like the cardboard cutout of a lizard maid if you run with them on.

@PKPenguin321
Copy link
Contributor

godlike 👍

@duncathan
Copy link
Contributor

!

@harmonyn
Copy link

if runtime is near a large cardboard box she should run inside it

@WJohn WJohn added the Feature Exposes new bugs in interesting ways label Sep 11, 2015
@Fox-McCloud
Copy link
Contributor

They can also can be used for more "tactical" purposes, at the same speed as walking.

Ha..

@Aloraydrel
Copy link
Contributor

!

@Kromgar
Copy link
Contributor

Kromgar commented Sep 11, 2015

Now have cardboard boxes in maint and suddenly shadowlings hiding in cardboard boxes is new meta

@ike709
Copy link
Contributor

ike709 commented Sep 11, 2015

Make it so you can attach a poster to it when standing up with it and walking around.

👍

@ghost
Copy link

ghost commented Sep 11, 2015

@peoplearestrange
Copy link
Contributor

👍 Nienhaus comes up trumps with a sprite again.

Dis gun be good.

@Incoming5643
Copy link
Contributor Author

Excellent Nienhaus, age hasn't slowed you down one bit

@Fox-McCloud
Copy link
Contributor

There needs to be a subtype of this box that has a "!" sound play when you open it.

@ghost
Copy link

ghost commented Sep 11, 2015

@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.
@Incoming5643
Copy link
Contributor Author

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

@Incoming5643 Incoming5643 changed the title [Needs sprites] Adds large cardboard boxes Adds large cardboard boxes Sep 11, 2015
@ghost
Copy link

ghost commented Sep 12, 2015

@Incoming5643
Copy link
Contributor Author

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.

@ghost
Copy link

ghost commented Sep 12, 2015

Yay!

@Iamgoofball
Copy link
Contributor

@Incoming5643 we can do a very close replica + idk i think parody act???

@AKlimentyev
Copy link

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
Copy link
Contributor

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()?

Copy link
Contributor Author

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()

Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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.

@callanrocks
Copy link

They should make you unable to be tracked by the AI like agent cards yes/yes/yes?

@ghost
Copy link

ghost commented Sep 13, 2015

@RemieRichards Merge pls

egg_cooldown = 1
spawn(600)
egg_cooldown = 0
..()
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor

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 :^)

Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

!

@Incoming5643
Copy link
Contributor Author

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 👶

@Niknakflak
Copy link
Contributor

!

alerted << sound('sound/machines/chime.ogg') //HQ HQ!
egg_cooldown = 1
spawn(3000)
egg_cooldown = 0
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Is that spess y2k

Copy link
Contributor

Choose a reason for hiding this comment

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

basically yeah

@tedward1337
Copy link
Contributor

!

@Incoming5643
Copy link
Contributor Author

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.

@tedward1337
Copy link
Contributor

More like
Tacti-COOL espionage action am I right guys??

@Eddlicious
Copy link

Could you fold these large cardboard boxes? Y'know, for... Tactical uses.

@Razharas
Copy link
Contributor

Plz remove silly comments

@Incoming5643
Copy link
Contributor Author

You may pick one to be removed, but whichever you spare must remain enshrined.

@Razharas Razharas merged commit d2a1028 into tgstation:master Sep 24, 2015
@PKPenguin321
Copy link
Contributor

fuckin' finally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Exposes new bugs in interesting ways
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet