Author Topic: Raycasting Assault Rifle  (Read 1243 times)

before saying "OGM RAYCASTING THATS loving STUPID TROLOLOLOL", hear me out.

*Reminder* It might not be possible, but oh well.







This Assault Rifle, or weapon pack, whatever, uses raycasts instead of bullets, but the Raycasts only deal damage in 1 of the 2 ways. (if any possible.)

1
The raycasts only "fly" a certain distance before becoming inactive. Say, 500 studs. If the raycast flies past that mark, they don't deal damage.

2
Over distance, the raycasts slowly lose damage power. But they have a much farther range, say about 1000 studs.

***STUDS THINGS AN EXAMPLE***

possible, although what i would do is fire multiple raycasts that fly different distances, ie
most powerful fires X away
2nd most powerful fires 2X away, if the above one hasn't been hit
3rd most powerful fires 3X away, if the above one hasn't been hit
and so on...

Try it more like this.
The gun fires 3 raycasts at once in the same direction.
The furthest traveling raycast does x amount of damage.
The second furthest does x damage plus the damage of the further traveling raycast.
The closest raycast does the damage of x plus the two further damaging raycasts combined.
Auh?

Try it more like this.
The gun fires 3 raycasts at once in the same direction.
The furthest traveling raycast does x amount of damage.
The second furthest does x damage plus the damage of the further traveling raycast.
The closest raycast does the damage of x plus the two further damaging raycasts combined.
Auh?
Auh.

Auh. Auh.



(i do like this idea more.)

What about simply modifying Support_Raycasting so it checks the range?

Let's say the max range is at 300. One "bullet" does 20 damage. When it hits at 150, it does only half damage or something. Would be more accurate and requires only one raycast :P

i think space included a function for falloff damage in his pack

either way i'll experiment with this on my server

The Buster Gun raycasts and has damage falloff at range. (and a very limited range to start with)

The Buster Gun raycasts and has damage falloff at range. (and a very limited range to start with)
But it's a shotgun.

Just saying that as an example of it being possible to make raycasts with falloff.