- Joined
- Jun 5, 2016
- Messages
- 268
- Nebulae
- 79
have you ever fucked up so bad that you dont even know how you fucked up
Zak, you must escape The Matrix.exe.
have you ever fucked up so bad that you dont even know how you fucked up
also this isn't really relevant to coding in any way but fuck it, this is my thread so i make the rules
I finally figured out how
they managed to do the time travel sequences during the level "Effect and Cause".
Since it uses the Source engine, it was bugging me really badly, since although it is a heavily modified version it's still the same engine at its core. After enough digging through unpacked VPK files, wild speculation, and even trying to decompile maps manually by opening them in a text editor, I finally discovered it (or, at least, came up with a reasonable hypothesis) by simple trial-and-error and looking in the right place at the right time.
If you look closely, you'll see a seemingly random duplicate nametag. Whenever you make the time switch, the nametag's location alternates between being in the ceiling and the floor. Given the few random AI quirks that the level has, along with a few noticeable bugs (grenades thrown before switching timeline don't follow the same laws of time as the enemies, detonating satchel charges while in the opposite timeline will still produce an explosion effect upon returning quickly enough but do no damage, etc) has led me to a conclusion so simple that I'm amazed I haven't thought of it further.
It's just two almost-identical copies of the level stacked on top of each other.
Switching timelines simply translates your position some pre-defined distance along the Z-axis, say 8,000 units or so. All the enemies in the new timeline are spawned/re-enabled, and enemies in the old timeline have their AI disabled. When switching timelines back to the opposite one, it disables the AI in the timeline you're leaving, and re-enables the AI for the enemies in your new timeline. There's also some extra coding trickery involved behind the scenes to ensure you don't time travel into a wall, but I've finally figured out the main method of how they do it.
I'm way more proud of myself than I should be.
playercount has actually been gradually increasing since launch according to some statistics, plus with all the free dlc and updates they've been releasing it's starting to draw a lot more people ini loved that level as well, tbh titanfall 2 is an underrated game man, but that's what it gets for a release that was really close to bf1 and infinite warfare
yeah it's kind of awesome how all the new maps and dlcs are free, kind of a surprise that EA didn't make the devs release some season pass or something (looking at you battlefield 1)playercount has actually been gradually increasing since launch according to some statistics, plus with all the free dlc and updates they've been releasing it's starting to draw a lot more people in
here's hoping it's one of those games that kinda gets fucked over on release but gets popular afterwards
"time and effort" lmao it takes like two secondspeople should stop asking for more food/drink items
It's not worth the time and effort, honestly.
- 95% of the playerbase don't roleplay eating
- 30ish% of the playerbase never eat or drink and ignore the bars
- 0% of the playerbase (@Blackquill is an exception) has ever thanked me for adding or rewriting any food items in the past
Actually, you need:"time and effort" lmao it takes like two seconds
you slap a model path down, and change the name and description in the script file, done.
Actually, you need:
- Name
- Description
- Model
- Category
- Hunger Variable Increase
- Thirst Variable Increase
- Cost in Business Menu
- Availability in Business Menu
- Associated Business Menu Flag
- Crafting Recipes (Which are separate)
- Whether or not the item adds the drunkenness effect.
- Attribute Effects
That, for thirty to forty scripts, can take a fucking long time, especially when the descriptions on items were as comprehensive as I used to make them.
wooooow that takes forever i betActually, you need:
- Name
- Description
- Model
- Category
- Hunger Variable Increase
- Thirst Variable Increase
- Cost in Business Menu
- Availability in Business Menu
- Associated Business Menu Flag
- Crafting Recipes (Which are separate)
- Whether or not the item adds the drunkenness effect.
- Attribute Effects
That, for thirty to forty scripts, can take a fucking long time, especially when the descriptions on items were as comprehensive as I used to make them.
lol we dont even need more custom made items when an sa can just make them with custom item/food/whatever its called"time and effort" lmao it takes like two seconds
you slap a model path down, and change the name and description in the script file, done.
EDIT: Dumb but true
wooooow that takes forever i bet
copying and pasting similar items and changing a few variables
If it were so easy, you'd be doing it, then again, we need competent, literate people to help with this stuff.wooooow that takes forever i bet
copying and pasting similar items and changing a few variables
i would do it but then again i don't exactly have access to the server files, do i?If it were so easy, you'd be doing it, then again, we need competent, literate people to help with this stuff.
i would do it but then again i don't exactly have access to the server files, do i?
telling people its hard to make new script items is really just you being lazy
telling people its hard to make new script items is really just you being lazy
i would do it but then again i don't exactly have access to the server files, do i?
he isnt staff and i could get the format right now if you wanna write up some scriptsi would do it but then again i don't exactly have access to the server files, do i?
telling people its hard to make new script items is really just you being lazy
Neither do I, and I never have.i don't exactly have access to the server files, do i?
I never said it's hard, I said it's time consuming. If you think you're so good, get the item skeleton from a dev, and write some scripts. :)telling people its hard to make new script items is really just you being lazy
"The guy who's never done it and never will"
m8 ive coded more items in roleplay schemas than hours you've spent on gmod
i'll write you boys up some scripts, i need:he isnt staff and i could get the format right now if you wanna write up some scripts