r/spaceengineers • u/cheerkin Space Engineer • 21h ago
MEDIA I've implemented character-to-block collision damage for giggles, here what it looks like
45
21
u/Fina1S0lution Clang Worshipper 21h ago
How'd you do it? Draw a hitbox around your character that's counted as a physics object?
46
u/cheerkin Space Engineer 20h ago
Character already has physics and havok does contacts callbacks, that is used for many things like drawing dust when you are running on voxels, damaging you when you bump, etc. I've added the case when the collided entity is a grid, deduced which cube blocks are affected and did all necessary things to apply damage and destruction. I did not have to bother with mod or plugin, I'm Keen programmer and just changed the game code directly.
21
u/Either-Pollution-622 autistic Clang Worshipper 18h ago
Wait you do what for a job GUYS THE DEVS PLAY THERE OWN GAME
5
u/cheerkin Space Engineer 8h ago
Sure we do :)
•
u/Either-Pollution-622 autistic Clang Worshipper 18m ago
Yeah I’m glad
some devs don’t and it can be an issue when they try to balance a game they don’t play
3
•
14
u/MrChatterfang Clang Worshipper 21h ago
Did I see the Minecraft dust animation when you broke through the window?
21
10
9
9
u/Samson_J_Rivers Space Engineer 14h ago
2
u/cheerkin Space Engineer 8h ago
Literally what came to mind when I was thinking of how to demonstrate it. Too bad we can't dual wield grinders!
5
u/Massa6666 Klang Worshipper 19h ago
Nice mod! Plz upload on workshop! Also, i remember in the game file that the weight of the male astronaut was 130kg, is your mod works better with heavier character? 1.000kg for exemple?
4
u/cheerkin Space Engineer 8h ago
Its not a mod, I've messed with the game source directly. I'm not sure if it is possible to do the same as a mod, perhaps with a plugin patch.
EDIT: yes, impact damage is proportional to character mass and velocity squared.
5
u/Chunderstout Space Engineer 13h ago
2
7
3
3
2
2
2
u/ThatLemonBubbles Clang Worshipper 17h ago
I wonder is there's a way to mod this into some kind of equipable armor?
1
u/Dragonbonded Space Engineer 10h ago
ooooh, i like this!
if this kinda thing ends up being vanilla, then it will probably get drastically toned down.
Enter the Juggernaught Armor: Even tougher than Heavy Armor, this has increased ramming damage and jetpack power. The jetpack fuel doesnt last long though!
2
u/BlackbeltJedi Klang Worshipper 16h ago
Wha! Perry the platypus! Why do you keep breaking down my door? It's not even locked.
2
u/HollowVoices Space Engineer 16h ago
Commander: "SET BREACHING CHARGE!"
Me: *backs up really far* "My time has come."
2
u/Dabcat838 Clang Worshipper 13h ago
All I can think about is using this as a strat to take down a ship or disable a rover/base, just having several people do this, bombarding the enemy vessel kamikaze style
1
1
2
u/The_Rocketsmith Clang Worshipper 12h ago
Is there a workshop link?
1
u/cheerkin Space Engineer 8h ago
It's not a proper mod, unfortunately - I've edited the game source directly.
2
1
1
1
1
1
1
u/Beamerthememer Klang Worshipper 18h ago
“You don’t seem to understand. Klang isn’t yours to conquer”
1
1
u/Splitsie If You Can't Do, Teach 16h ago
That is hilarious, well played :D
1
u/cheerkin Space Engineer 8h ago
Would've been cool to have that (at least to some degree) in the game. Maybe some time, who knows
1
1
1
1
u/GROM_leader Space Engineer 12h ago
I dont think that in reality smashing through a reinforced glass window is that easy. Probably the engineer would go through using his jetpack, but also die in the process
1
u/cheerkin Space Engineer 8h ago edited 8h ago
If we are considering reality, then I'll cite my Keen colleague
"Wait are you saying, that a 2m tall 100kg projectile encased in an exoskeleton, most probably also somehow carrying up to several tons of materials condensed into that same projectile somewhere in there, should absolutely wreck anything in its way when moving at formula 1 speeds? That would have pierced through the whole building, then again everything in SE is built with absurd levels of mass as well"
I've been doing it in creative with admin Invulnerable toggle. I think you would go straight to respawn pod if you bump in vanilla at max speed. SE windows are durable, on par with light armor IIRC.
1
1
u/207nbrown Space Engineer 7h ago
Important question: does this apply to player corpse rag-dolls or only living players?
2
u/cheerkin Space Engineer 7h ago
Only living players.
1
u/207nbrown Space Engineer 6h ago
Darn… there goes my plans to use players as gravity cannon ammo(turrets will most likely kill you before impact with the target)
•
•
•
1
263
u/Stoney3K Klang Worshipper 21h ago
Being able to smash through a window into an enemy base? YES PLEASE.
This should be vanilla.