Author Topic: Claymore logic (Questions)  (Read 2791 times)

I have some questions.

Im planning on making a claymore and i want conformation that my idea will work before me and my friend put in the time to make one.

Question 1: Using the same idea as the Landmine (player steps on it, and explodes) Can i make a claymore with an invisible hitbox or such that has collision properties, that goes in front of the Claymore model itself? That way, when the player steps on this Hit box or collision mesh (im not sure what you call it), the whole claymore explodes.

Question 2: Is there a way to turn damage radius, into a damage cone?


My idea: Make a Claymore with an invisible hitbox in front of it. When player steps on hitbox, A: Spawn explosion with a cone damage radius. Or B: spawn a REALLY small projectile that launches towards the player so fast that they dont see it, causing the illusion that the claymore itself exploded

Would this work?

Correct me if I'm wrong but,

It's not technically an explosion radius, more of an explosion square
The game preforms a container search [which is square] and deals damage depending on how far away you are from the center of the search box.

I'm assuming with some math, you could deal damage in a cone shape based on height and distance.

It's not technically an explosion radius, more of an explosion square
The game preforms a container search [which is square] and deals damage depending on how far away you are from the center of the search box.
container searches can be spherical as well as cuboid



this should be possible with some fancy maths that i don't quite know about. i've seen and done cone searches before

But is the claymore with the invisible hitbox possible?

i suppose the best way to do that would be with a trigger

which is, by definition, an invisible hitbox i guess lol

i suppose the best way to do that would be with a trigger

which is, by definition, an invisible hitbox i guess lol

cool im gonna use the Landmine as a template that way when the player steps on this hitbox, the claymore explodes

i recommend using the shrapnel projectiles that are used in the frag grenade addon

container searches can be spherical as well as cuboid



this should be possible with some fancy maths that i don't quite know about. i've seen and done cone searches before
Yes, they can be, and I'm fairly certain the default shape is a sphere.

As for the cone, look into raycasting and vector math. It is possible. I'll track the SCP brick that I made that uses this sort of math and let you know.