| Blockland Forums > Modification Help |
| Are clinking bullet casings possible? |
| (1/5) > >> |
| Red Cube:
Well, I was thinking during school, is it possible for a bullet casing in-game to make a clinking noise when it hits something (i.g., the ground.)? Here's how (i think) the code would generally go (it'd probably be in the part that covers the casing). Don't flame me because I am not very good at figuring out the right symbols in C+ & C++. --- Code: ---//Oncollision; playsound; "shellclink" --- End code --- or something close to that. /discuss oh, and the shellclink is an example sound. --- Quote from: Doomonkey on April 08, 2011, 12:19:18 PM ---Make the bullet shell a projectile that bounces well and clinks on each bounce. --- End quote --- |
| ShadowsfeaR:
I never thought of this. Someone answer, this would be amazing. |
| Frostbyte:
I think for GCats FNSCAR it has a bullet clink sound but it's mixed with the fire. |
| Zloff:
It is possible for a projectile to make a different sound depending on which type of object it hits. And yes, Gravity has made this happen for his weapons when you shoot a vehicle |
| Gravity Cat:
The easiest way would be mixing a clink sound to the firing sound of a weapon. A kind of stupid way would be firing a raycast to check for the distance and how long it would probably take for the shell to hit the ground, and playing a delayed sound then. But the way you suggested it, that the shell itself checks and plays the sound is impossible I think. |
| Navigation |
| Message Index |
| Next page |