Recoil?

Discuss all aspects related to modding Zandronum here.
Post Reply
Hece
Forum Regular
Posts: 114
Joined: Wed Jun 06, 2012 6:26 am
Location: Phobos

Recoil?

#1

Post by Hece » Thu Jun 21, 2012 10:06 am

Is there any way to make recoil whitout ACS?

User avatar
Dark-Assassin
Maintenence Crew
Posts: 968
Joined: Fri May 25, 2012 4:25 am

RE: Recoil?

#2

Post by Dark-Assassin » Thu Jun 21, 2012 10:47 am


User avatar
Ænima
Addicted to Zandronum
Posts: 3578
Joined: Tue Jun 05, 2012 6:12 pm

RE: Recoil?

#3

Post by Ænima » Thu Jun 21, 2012 11:46 am

http://zdoom.org/wiki/A_SetPitch

I'd recommend the ACS method though because it's much more flexible.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

XutaWoo
Forum Regular
Posts: 113
Joined: Mon Jun 04, 2012 7:04 am

RE: Recoil?

#4

Post by XutaWoo » Thu Jun 21, 2012 12:24 pm

Ænima wrote: http://zdoom.org/wiki/A_SetPitch

I'd recommend the ACS method though because it's much more flexible.
Only if you don't know what you're doing. :V

...

Okay it still involves ACS but I'm pretty sure A_SetPitch will be able to be predicted easier by Zandornum soooo.
[spoiler]Image[/spoiler]
Image

User avatar
Ivan
Addicted to Zandronum
Posts: 2228
Joined: Mon Jun 04, 2012 5:38 pm
Location: Omnipresent

RE: Recoil?

#5

Post by Ivan » Thu Jun 21, 2012 2:09 pm

A_SetPitch is not even on Zandronum. It's kind of unclear what he asks for, really. You can use SetActorPitch for the pitch one or what Dark-Assassin said for the kickback.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===

User avatar
Ænima
Addicted to Zandronum
Posts: 3578
Joined: Tue Jun 05, 2012 6:12 pm

RE: Recoil?

#6

Post by Ænima » Thu Jun 21, 2012 2:18 pm

XutaWoo wrote:
Ænima wrote: http://zdoom.org/wiki/A_SetPitch

I'd recommend the ACS method though because it's much more flexible.
Only if you don't know what you're doing. :V
By "flexible" I mean you can give your recoil its own function and do stuff like I did and make it so players can scale or toggle it based on their prefrences. :V
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Minigunner
 
Posts: 86
Joined: Mon Jun 04, 2012 5:24 am
Location: California

RE: Recoil?

#7

Post by Minigunner » Thu Jun 21, 2012 2:52 pm

-=Dark-Assassin=- wrote: A_Recoil?
A_Recoil (force * cos(pitch))
Because the current one does not account for pitch. At all.
Theshooter7 wrote:Also, to all those people who stack players for exploits: I hate you. Do I really need to seal off every inch of every map to prevent you from getting to places you shouldn't?

XutaWoo
Forum Regular
Posts: 113
Joined: Mon Jun 04, 2012 7:04 am

RE: Recoil?

#8

Post by XutaWoo » Fri Jun 22, 2012 3:29 am

Minigunner wrote:
-=Dark-Assassin=- wrote: A_Recoil?
A_Recoil (force * cos(pitch))
Because the current one does not account for pitch. At all.
...That'll send people backwards or forward depending on whether they're looking up or down. :neutral:
[spoiler]Image[/spoiler]
Image

Ijon Tichy
Frequent Poster Miles card holder
Posts: 901
Joined: Mon Jun 04, 2012 5:07 am

RE: Recoil?

#9

Post by Ijon Tichy » Fri Jun 22, 2012 3:36 am

no, cos starts at 1, so it works
cos(45°) == sqrt(2) // == -0.125 pitch
cos(-45°) == sqrt(2) // == 0.125 pitch
Last edited by Ijon Tichy on Fri Jun 22, 2012 3:36 am, edited 1 time in total.

XutaWoo
Forum Regular
Posts: 113
Joined: Mon Jun 04, 2012 7:04 am

RE: Recoil?

#10

Post by XutaWoo » Fri Jun 22, 2012 3:16 pm

Oh, okay.

...you'd still want to use an ACS script or wait for A_ChangeVelocity, because it doesn't make sense to have three-dimensional recoil that only affects the player on the two-dimensional plane.
Last edited by XutaWoo on Fri Jun 22, 2012 3:17 pm, edited 1 time in total.
[spoiler]Image[/spoiler]
Image

Minigunner
 
Posts: 86
Joined: Mon Jun 04, 2012 5:24 am
Location: California

RE: Recoil?

#11

Post by Minigunner » Fri Jun 22, 2012 5:10 pm

I also use ThrustThingZ with 8x the force and with sin(pitch) instead of cos(pitch).
Theshooter7 wrote:Also, to all those people who stack players for exploits: I hate you. Do I really need to seal off every inch of every map to prevent you from getting to places you shouldn't?

Post Reply