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


The time now is Thu Mar 28, 2024 4:01 pm
All times are UTC + 0
PrimaryFireFLH doesn't move firing postion center - Why?
Moderators: 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
Cyborg Soldier


Joined: 15 Jul 2019

PostPosted: Mon Jan 31, 2022 9:47 pm    Post subject:  PrimaryFireFLH doesn't move firing postion center - Why? Reply with quote  Mark this post and the followings unread

Was making some experiments about adding turret to building. As i understood observing code of similar solutions, there are only few lines of code needed to be added to building:
Rules:
Primary=Sentry
Turret=yes
TurretAnim=NASNTYTUR
TurretAnimIsVoxel=false ;true
TurretAnimX=-30
TurretAnimY=-20
TurretAnimZAdjust=-200
HasRadialIndicator=yes
Art:
Recoilless=yes
PBarrelLength=200
PBarrelThickness=48
CanHideThings=True
CanBeHidden=False
PrimaryFireFLH=180,250,180

TurretAnimX/Y moved the image of turret to proper place, but whatever changes i make to PrimaryFireFLH, it still looks like invisible turret staying in center line of building and never shifts to side.
Before posting question i did search, read almost dozen of topics about FLH, like these:
https://ppmforums.com/post-65316/help-with-primaryfireflh/#65316
https://ppmforums.com/post-325882/primaryfireflh/#325882
https://ppmforums.com/post-470245/primarysecondaryfireflh-turretoffset-pbarrellength/#470245
https://ppmforums.com/post-609345/how-to-add-shp-or-voxel-turrets-to-buildingtypes-in-yr/#609345
Spent couple hours in trials, still no luck to make such simple f**king task(really got irritated). What's the magic against me??

Back to top
View user's profile Send private message
McPwny
Cyborg Artillery


Joined: 29 Jan 2018

PostPosted: Mon Jan 31, 2022 11:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

could it be "PrimaryFirePixelOffset"?

_________________
visit my moddb profile for .shp downloads and stuff

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


Joined: 15 Jul 2019

PostPosted: Tue Feb 01, 2022 10:04 am    Post subject: Reply with quote  Mark this post and the followings unread

McPwny wrote:
could it be "PrimaryFirePixelOffset"?
Thanks for this hint, never saw this command used, but it shifted the position!(though ModEnc is wrong in description = first number shifts left-right, second up-down).

But now new bug emerged that i couldn't notice before, while being bothered with turret problems = i was trying to add turret to vehicle factory, and after first vehicle is built, turret stops reacting to commands or enemies, moreover gates stay open and no new vehicles come out - freezes in this state forever. If mentioned above turret code in rules.ini is deleted, works again fine = seems like turret code has some problems with production buildings... May it happen you have some hint here too?

Back to top
View user's profile Send private message
Virgil
Stealth Laser Trooper


Joined: 22 Jul 2018

PostPosted: Tue Feb 01, 2022 11:13 am    Post subject: Reply with quote  Mark this post and the followings unread

rey wrote:
McPwny wrote:
could it be "PrimaryFirePixelOffset"?
Thanks for this hint, never saw this command used, but it shifted the position!(though ModEnc is wrong in description = first number shifts left-right, second up-down).

But now new bug emerged that i couldn't notice before, while being bothered with turret problems = i was trying to add turret to vehicle factory, and after first vehicle is built, turret stops reacting to commands or enemies, moreover gates stay open and no new vehicles come out - freezes in this state forever. If mentioned above turret code in rules.ini is deleted, works again fine = seems like turret code has some problems with production buildings... May it happen you have some hint here too?

Don't give vehicle factories weapon, vehicles would get stuck in it when it fires, as you have already known. That's all.

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


Joined: 15 Jul 2019

PostPosted: Tue Feb 01, 2022 11:44 am    Post subject: Reply with quote  Mark this post and the followings unread

Virgil wrote:
Don't give vehicle factories weapon, vehicles would get stuck in it when it fires, as you have already known. That's all.
That's very sad news, i was inspired by this building conversion pack..
https://ppmforums.com/post-609346/#609346
And now i wonder why/how did author made WF and ConYard to have turrets?!

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
 
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.1697s ][ Queries: 11 (0.0070s) ][ Debug on ]