Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
curvegun (custom weapon)

#1
Rainbow 
So here is a thing I am making.



The idea is that when you press down primary fire, you shoot out a tracer shot that is only visible to you. When you release primary fire, a bullet fires in a parabolic arc starting in the direction you are currently looking, and passes through wherever the tracer was.

This isn't an attempt to replace/copy the functionality of the devastator. What I would like to do eventually is to make the projectile much, much faster than the devastator rocket, so that it is essentially hitscan. That way we can curve rockets and hitscan shots.

I hope you like it Wink
Reply

#2
(08-01-2016, 04:13 PM)dingus Wrote: So here is a thing I am making.



The idea is that when you press down primary fire, you shoot out a tracer shot that is only visible to you. When you release primary fire, a bullet fires in a parabolic arc starting in the direction you are currently looking, and passes through wherever the tracer was.

This isn't an attempt to replace/copy the functionality of the devastator. What I would like to do eventually is to make the projectile much, much faster than the devastator rocket, so that it is essentially hitscan. That way we can curve rockets and hitscan shots.

I hope you like it Wink

So The Fifth Element ZF-1

[MoFo] Servers - North America - Hosted in Montreal Canada - Admin DeadDred [MoFo]
Reply

#3
(08-01-2016, 04:50 PM)end user Wrote: So The Fifth Element ZF-1

Only if you are mirio/kromatic/smilescythe
Reply

#4
There's something like this on the SMB servers already, but the tracer is visible to all, and if you hit the opponent with it, I think it auto-fires an attack of rockets. Might be worth looking at their implementation.

FWIW: I like the fact that you can target any spot instead of just an opponent (ie: could do splash damage if you target near an opponent), though that might make such a weapon too powerful.
[Image: 21975.jpg]

Quote:“To summarize the summary of the summary: people are a problem.” - Douglas Adams
Reply

#5
(08-01-2016, 06:24 PM)cefiar Wrote: There's something like this on the SMB servers already, but the tracer is visible to all, and if you hit the opponent with it, I think it auto-fires an attack of rockets. Might be worth looking at their implementation.

FWIW: I like the fact that you can target any spot instead of just an opponent (ie: could do splash damage if you target near an opponent), though that might make such a weapon too powerful.

Thanks for the suggestion. I looked at that weapon, but as far as I can tell, the only way to hit someone is to first shoot them with the tracer. The tracer on that weapon fires in a straight line and doesn't pass through walls, so I'm not sure I see the point of it. You have to have line of sight so it ends up functioning like a 'normal' gun.

With this gun, the whole point is that you can shoot around corners like the devastator, but the shot moves quickly and you don't have to continuously aim. This means it would be good for things like prediction shots. If anything, it is like a more sophisticated mortar weapon.

Another thing that isn't immediately obvious: that last shot in the video shows that you can make the bullet completely switch directions rather quickly. I would like it to be possible to do 'mid-air' rocket jumps by doing a sort of 180 flick-shot in the direction you want to be propelled.
Reply

#6
Oh I wasn't saying to copy it, more that their implementation of how some of it works (eg: the homing rockets) might prove useful for making yours work (eg: less code, better code paths, etc).
[Image: 21975.jpg]

Quote:“To summarize the summary of the summary: people are a problem.” - Douglas Adams
Reply

#7
It eneded up where you pointed the tracer only the last time, every other time it looks like the projectile have gone to a random place. What am i seeing wrong?
erebus minstanex erebus Angel
Reply

#8
(08-01-2016, 06:24 PM)cefiar Wrote: There's something like this on the SMB servers already, but the tracer is visible to all, and if you hit the opponent with it, I think it auto-fires an attack of rockets. Might be worth looking at their implementation.

FWIW: I like the fact that you can target any spot instead of just an opponent (ie: could do splash damage if you target near an opponent), though that might make such a weapon too powerful.

That weapon (T.A.G. Seeker) is actually a part of vanilla game, available under the New Toys mutator or found on Vehicle maps. It existed since Nexyiz times.
[Image: 0_e8735_c58a251e_orig]
Reply

#9
(08-02-2016, 06:33 PM)cefiar Wrote: Oh I wasn't saying to copy it, more that their implementation of how some of it works (eg: the homing rockets) might prove useful for making yours work (eg: less code, better code paths, etc).

Oh, I see. Thanks for the suggestion Smile

Pendulla Wrote:It eneded up where you pointed the tracer only the last time, every other time it looks like the projectile have gone to a random place. What am i seeing wrong?

It doesn't follow a straight path to the tracer, but will always pass through it. It essentially follows a bezier curve whose control points are the player position, a second point based on the look direction, and the tracer position.

The exact formula is this:

Code:
(1-t)*(1-t)*p0 + 2*(1-t)*t*p1 + t*t*p2;

where:

Code:
p0 = player.origin
p2 = tracer.origin
p1 = vlen(p0, p2) * normalize(v_look) + player.origin

(bare in mind I'm using velocity and acceleration instead, but that's just an implementation detail. I also need to reparamaterize the curve based on arclength, which will make it so that the bullet travels at a constant speed. However thats pretty technical)
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Where are Weapon skins? NoClue 0 1,812 07-07-2022, 01:26 PM
Last Post: NoClue
  Can I adjust the weapon model size and stuff? Molnija 1 2,561 03-13-2019, 12:28 AM
Last Post: BuddyFriendGuy
  weapon size Molnija 0 2,360 12-03-2018, 05:22 AM
Last Post: Molnija
  Custom Weapon Balance - Live on /v/ server Antares* 30 21,647 09-30-2016, 11:52 AM
Last Post: Antares*
  Weapon models WIP help. Beagle 1 3,753 05-17-2015, 06:52 PM
Last Post: Beagle
  Weapon and Lightning Gun Testing Mario 18 18,140 11-11-2014, 08:02 PM
Last Post: Lee_Stricklin
  weapon with different effects according to team soukaina 23 20,841 06-06-2013, 01:20 PM
Last Post: Mr. Bougo
Information Spawn Weapon Concept: "Blaster" Samual 85 91,283 03-27-2013, 01:18 PM
Last Post: Samual
  Weapon Settings Question? kidx 22 19,293 08-30-2012, 08:04 PM
Last Post: Mr. Bougo
Question Supressing available weapon errors... cl_weaponsystem.qc confusion twistedlincoln 4 6,682 07-01-2012, 12:38 PM
Last Post: twistedlincoln

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-