Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "fire a gun"
-
So I recently had a university project which focuses video game audio. We had to work in groups of 3 students and the task was to create a video game which uses audio as a gameplay mechanic.
Our idea was to create a game where you collect different audio samples which get looped as background music, and you have to select the correct ones to have a nice tune. To make it a bit more challenging we had enemies, guns and grenades plus doors which only open if the correct music is playing.
The guns fire on-beat, and the grenades always explode on the first beat of the next bar.
It was quite challenging to get things synced since even small offsets are noticable.
I wrote some nice code and theoretically it should have worked but for some reason the gun shots and the grenades didn't quite hit the beat of the music.
I tweaked stuff, created workarounds, optimized lot's of code to get execution times down but it still only worked sometimes.
I tweaked more and more only to realize that the timing drifted over time.
At that time I worked 20-30 hours on tweaking and trying to get it perfectly timed.
After recalculating some numbers I realized that all the audio samples are recorded at 135 bpm, but the guys who did the recordings said it was 130bpm.
I asked them if it could be the case that the samples are 135bpm and they said:
"yes, they are at 135 bpm as we told you"
I scrolled back in the telegram conversation only to see that they said 130.
Changing the number to 135 resolved all the problems and all of my workarounds and tweaks weren't needed.
So I worked for nearly 30 hours just because they didn't notice their fault and even when they realized that the timing is off sometimes (which took forever because they never played the game), they didn't even consider that they might have given me the wrong numbers.
This all wouldn't be that bad if both of my teammates had worked for more than 15 hours but they didn't. I did all the hard work and the only single thing they did fucked up my workflow. It fucked up the system I created and it fucked up the gameplay as things got unpredictable. Because of their fucking fault I worked as much as both of them combined IN ADDITION to all the other work I did (built 3 maps, coded everything, created animations, ...)
I love working in teams, but only if the whole team is motivated. Those two fuckers were the exact opposite.
Luckily i found the error so I could fix it, but guess with whom I'll never ever work together again?10 -
Sometimes my boss wants me to fire a bullet without a gun, they want me to throw the bullet so hard that it feels like it was shot via a gun.
Maintaining a legacy app sucks so bad when you don't even have the full codebase and some douche bag decided to just randomly throw the codebase on the fucking SVN. 😠1 -
How can one "steal" a job anyways? Is not like there's a robot with a gun forcing your boss to fire you and give him the contact instead, which the robot is way better at anyways, producing no bugs and ten times the features you were able to do, and all that for a few bucks of electricity a day... FUCK, WE'RE DOOMED!!!5
-
haha I just thought of the perfect training device.
so many guns can have hair triggers. why not create a wifi enabled composite replica of guns someone is training with and get them all excited and psyched out and add a tracker to the trigger that opens a simple circuit and reports 'weapon fire' and gun orientation to the computer to help with training and reinforcing the training of proper weapons handling during apprehension or holding of a person so you can take control without shooting them accidentally in war or law enforcement actions, you could add a system that plays a very alarming bad noise when someone in the scenario is accidentally shot or you accidentally shoot the person being apprehended :P you know like you hold a pair of scissors with the point away, train them to hold their finger somewhere when handling a certain way to prevent misfire.
yes i'm thinking about shooting certain people or holding pedo money bags hostage atm. -
Hi devs just a simple question for people who use cheat engine or any memory editor if your looking for information of a gun like fire rate don't you have to search ammo to find other things related to that object?
and say fire rate is a few values close
is that because when programming the game they put the values close to each other and that is called offset (1 value is closer to the base value)?