"Actor Toss"
"Actor Toss"
Is there a possible workaround to have a spawned actor thrust itself in a random direction at a given force?
ive tied thrust thing but it didn't do anything possibly recoil?
ive tied thrust thing but it didn't do anything possibly recoil?
Last edited by Gibs on Thu Apr 14, 2016 11:58 am, edited 1 time in total.
- Sean
- IRC Operator
- Posts: 982
- Joined: Thu Jan 16, 2014 9:09 pm
- Location: United Kingdom
- Clan: Zandronum
- Clan Tag: [Za]
- Contact:
Re: "Actor Toss"
<capodecima> i dont say any more word without my loyer jenova
Re: "Actor Toss"
kk ill tinker with it somemore thanks!
Re: "Actor Toss"
A negative A_recoil value can move it forward. If you want to set the same random value for each recoil, you should probably use user variables. http://zdoom.org/wiki/User_variable
Just keep in mind it wont work on weapons.
Just keep in mind it wont work on weapons.
- CloudFlash
- Zandrone
- Posts: 1074
- Joined: Mon Jun 04, 2012 5:35 pm
- Location: Wonderland (except not really)
Re: "Actor Toss"
Or you could try fiddling with a_recoil coupled with a_setangle(random(0,360)).
Dunno if it'll work the way you want tho
Dunno if it'll work the way you want tho
- SwordGrunt
- Forum Regular
- Posts: 377
- Joined: Thu Jun 07, 2012 8:43 pm
Re: "Actor Toss"
A_Recoil, A_ChangeVelocity, ThrustThing are all valid options
For the first you'll need to change its angle to a random value before applying the recoil
Note that A_ChangeVelocity heavily desyncs online in the current Zandronum so if using that, make sure you use args or user variables to store the randomized velocity, then apply it on the codepointer. This indirect method ensures it does not desync
For the first you'll need to change its angle to a random value before applying the recoil
Note that A_ChangeVelocity heavily desyncs online in the current Zandronum so if using that, make sure you use args or user variables to store the randomized velocity, then apply it on the codepointer. This indirect method ensures it does not desync
Re: "Actor Toss"
thank you all for the advice! 
Im having an actor (ball) hit a player, die, spawn inventory (same ball sprite) then fling said inventory as if it was the original object bouncing off.

Im having an actor (ball) hit a player, die, spawn inventory (same ball sprite) then fling said inventory as if it was the original object bouncing off.