:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Thu Jan 27, 2022 5:36 am
All times are UTC + 0
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
[Solved mostly] Primary weapon reload blocks Secondary use.
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
rey
Soldier


Joined: 15 Jul 2019

PostPosted: Mon Dec 20, 2021 8:18 am    Post subject:  [Solved mostly] Primary weapon reload blocks Secondary use. Reply with quote  Mark this post and the followings unread

Tried to search through topics with NoAmmoWeapon questions, but can't find a solution. So there is a unit with Primary shooting and Secondary area attack. The problem is, when unit has Primary on reload Secondary doesn't work till reload ends. My main goal is to let unit freely use Secondary at any moment(if it's not on reload), without taking care of Primary state.(best would be even while Primary is being shot) Is there some way?

[Unit]
Primary=Weapon
Secondary=DeployWEapon
Deployer=yes
DeployFire=yes
UndeployDelay=1
Ammo=1
PipWrap=1
EmptyReload=360
Reload=360
PipScale=Ammo
NoAmmoWeapon=1
NoAmmoAmount=0

[Weapon]
ROF=210
Ammo=0

[DeployWeapon]
ROF=240
AreaFire=yes
FireOnce=yes
Ammo=1

Last edited by rey on Tue Dec 28, 2021 8:24 am; edited 1 time in total

Back to top
View user's profile Send private message
Allied General
General


Joined: 19 Mar 2004
Location: United Kingdom

PostPosted: Mon Dec 20, 2021 1:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Is this 'unit' a vehicle, infantry, aircraft?
_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Facebook Profile URL Twitter Channel URL
Starkku
Cyborg Commando


Joined: 28 Dec 2007
Location: Finland

PostPosted: Mon Dec 20, 2021 1:49 pm    Post subject: Reply with quote  Mark this post and the followings unread

Once unit fires any weapon, it can't fire another one again until number of frames equaling to ROF of the fired weapon have passed. Changing this system would require a rather considerable rework on weapon/firing-related functionality and would likely be unfeasible. NoAmmoWeapon does not change this at all, as it only affects weapon selection and using it in conjunction with deploy weapons is counterproductive anyways.

Only way to achieve something close to what you're trying to do is to ditch NoAmmoWeapon, tie Primary to ammo with ROF=0/1 or something with ammo simulating the true reload in this case and having Secondary with Ammo=0 and proper ROF. Tradeoff of this is that you won't be able to use ammo pips for the deploy weapon and using the deploy weapon puts Primary on cooldown as well anyways. Having completely independent reload timers for both weapons is under current system, impossible.
_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
rey
Soldier


Joined: 15 Jul 2019

PostPosted: Mon Dec 20, 2021 5:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Allied General wrote:
Is this 'unit' a vehicle, infantry, aircraft?
Sorry, forgot to mention, infantry.


Starkku wrote:
Once unit fires any weapon, it can't fire another one again until number of frames equaling to ROF of the fired weapon have passed. Changing this system would require a rather considerable rework on weapon/firing-related functionality and would likely be unfeasible. NoAmmoWeapon does not change this at all, as it only affects weapon selection and using it in conjunction with deploy weapons is counterproductive anyways.
Thank you for throughout informative explanation.!

Starkku wrote:
Only way to achieve something close to what you're trying to do is to ditch NoAmmoWeapon, tie Primary to ammo with ROF=0/1 or something with ammo simulating the true reload in this case and having Secondary with Ammo=0 and proper ROF. Tradeoff of this is that you won't be able to use ammo pips for the deploy weapon and using the deploy weapon puts Primary on cooldown as well anyways. Having completely independent reload timers for both weapons is under current system, impossible.
Secondary putting Primary on long wait of reload is not a big deal, Secondary deploy weapon is more like a safe/escape ability, that's why ammo-pips and ability to use in any moment is so important.
Shame gattling can't be used with infantry, maybe that could allow a trick of Primary "loading" through stages of dummy weapons for real one happening after same 210 frames. Oh well, impossible.

Back to top
View user's profile Send private message
rey
Soldier


Joined: 15 Jul 2019

PostPosted: Tue Dec 21, 2021 10:03 am    Post subject: Reply with quote  Mark this post and the followings unread

Starkku wrote:
Only way to achieve something close to what you're trying to do is to ditch NoAmmoWeapon, tie Primary to ammo with ROF=0/1 or something with ammo simulating the true reload in this case and having Secondary with Ammo=0 and proper ROF. Tradeoff of this is that you won't be able to use ammo pips for the deploy weapon and using the deploy weapon puts Primary on cooldown as well anyways. Having completely independent reload timers for both weapons is under current system, impossible.
Made some experiments around this idea and actually it works quite good, thanks again.! May it happen you have some hint how to compensate no pip for Secondary reload?(show in other way)
I was thinking about AttachEffect adding animation for period of reload, but weapon already uses it, and adeed effect/animation has shorter period than ROF.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1655s ][ Queries: 11 (0.0094s) ][ Debug on ]