A_RadiusThrust (radius, force, affectshooter, neg)
Moderator: GZDoom Developers
-
- Posts: 124
- Joined: Mon Mar 13, 2006 11:12 pm
- Location: nowhereville
A_RadiusThrust (radius, force, affectshooter, neg)
While I was sharing my opinions in the A_Implode thread, I got to thinking about a feature that just might be useful. It's about time I actually contribute something useful to these forums, so I might as well...
I have thought of a simple new DECORATE special: A_RadiusThrust (radius, force, affectshooter, neg). Its functionality is identical to A_Explode except it deals absolutely no damage, and retains only the thrust effect you get when blasting an enemy with a rocket or similar object. Sometimes it may be desirable to have something push enemies away without sending them to their grim death.
The params are mostly self-explanatory. Radius is... well, radius.
Force is how far away to push the enemies. For ease of use, this could possily be equivalent to the force generated by the Damage parameter in A_Explode (e.g. setting the Force parameter to 128 would yield the same result as a Damage setting of 128 in A_Explode, only without the damage).
Affectshooter determines whether the thrust is applied to the player/monster firing the projectile, or just the nearby enemies. This may be desired if the player himself is used as the center of the thrust and it isn't desired to send the player sky-high as well.
Finally, the Neg parameter if set to 1 provides negative thrust similar to the suggested A_Implode, sending monsters careening towards the center of the blast. If this were to be added, a 'tractor beam' weapon would be highly possible, for both players and monsters.
In conclusion... well, I don't posess much more information to say. What are all your thoughts on this?
I have thought of a simple new DECORATE special: A_RadiusThrust (radius, force, affectshooter, neg). Its functionality is identical to A_Explode except it deals absolutely no damage, and retains only the thrust effect you get when blasting an enemy with a rocket or similar object. Sometimes it may be desirable to have something push enemies away without sending them to their grim death.
The params are mostly self-explanatory. Radius is... well, radius.
Force is how far away to push the enemies. For ease of use, this could possily be equivalent to the force generated by the Damage parameter in A_Explode (e.g. setting the Force parameter to 128 would yield the same result as a Damage setting of 128 in A_Explode, only without the damage).
Affectshooter determines whether the thrust is applied to the player/monster firing the projectile, or just the nearby enemies. This may be desired if the player himself is used as the center of the thrust and it isn't desired to send the player sky-high as well.
Finally, the Neg parameter if set to 1 provides negative thrust similar to the suggested A_Implode, sending monsters careening towards the center of the blast. If this were to be added, a 'tractor beam' weapon would be highly possible, for both players and monsters.
In conclusion... well, I don't posess much more information to say. What are all your thoughts on this?
-
- Lead GZDoom+Raze Developer
- Posts: 49115
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
-
-
- Posts: 4723
- Joined: Mon Apr 10, 2006 1:49 pm
- Preferred Pronouns: He/Him
-
- Posts: 124
- Joined: Mon Mar 13, 2006 11:12 pm
- Location: nowhereville
-
- Posts: 1067
- Joined: Fri Nov 28, 2003 9:39 pm
- Location: A long time ago in a galaxy far, far away...
-
- Posts: 11346
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
-
- Lead GZDoom+Raze Developer
- Posts: 49115
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
-
- Posts: 11346
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
-
- Posts: 3288
- Joined: Sun Oct 03, 2004 8:57 am
- Preferred Pronouns: They/Them
- Location: South Africa
-
- Posts: 11346
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
-
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
-
- Posts: 4349
- Joined: Sun Feb 06, 2005 6:39 am
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Capital of Explodistan
-
- Posts: 1067
- Joined: Fri Nov 28, 2003 9:39 pm
- Location: A long time ago in a galaxy far, far away...