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 3:42 pm
All times are UTC + 0
Unholy alliance
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Renu48
Cyborg Soldier


Joined: 11 Nov 2018

PostPosted: Fri Aug 14, 2020 12:14 pm    Post subject:  Unholy alliance Reply with quote  Mark this post and the followings unread

I have partially created an unholy alliance gamemode. Can anyone help me with a code so that at the beggining i would have 3 different mcv appearing in my game

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


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Fri Aug 14, 2020 1:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

For one, each MCV must have proper Owner= set.

Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry

This will result in all subfactions being eligible to have the unit that has that Owner value. Whether or not you'll actually get 1 or more, that is a different story.

_________________
One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done. #Tongue

Back to top
View user's profile Send private message Send e-mail Visit poster's website ModDB Profile ID YouTube User URL Twitter Channel URL Skype Account
Renu48
Cyborg Soldier


Joined: 11 Nov 2018

PostPosted: Fri Aug 14, 2020 3:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

Is there a way to make sure that i always get all 3 mcv's like in cncnet

Back to top
View user's profile Send private message
silverwind
Cyborg Firebomber


Joined: 11 Jun 2016

PostPosted: Fri Aug 14, 2020 10:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

with Ares, make 3 unit delivery superweapons, each available to one side that delivers one MCV each from the remaining sides at the start of the game:

EDIT: full working code in spoilers:

Spoiler (click here to read it):
open rulesmd.ini, and find the [SuperWeaponTypes] list, then add to the end of that list:

Code:
+=UnholySW1 ;you can use + instead of a number when using Ares.
+=UnholySW2 ;it'll work like a incremental number.
+=UnholySW3



Now go to where the other superweapons are (just search for ParadropSpecial), and add the SW code after the existing ones.

Code:
;For Yuri Country
[UnholySW1]
UIName=NOSTR:Unholy Alliance
Name=Unholy Alliance Special
IsPowered=false
RechargeVoice=
ChargingVoice=
ImpatientVoice=
SuspendVoice=
Type=UnitDelivery
Deliver.Types=AMCV,SMCV ;delivers Allied and Soviet MCVs
SW.AlwaysGranted=yes ;available from the start
SW.InitialReady=yes ;and I mean the very start
SW.Shots=1 ;but can  only be fired once
SW.RequiredHouses=YuriCountry ;and only by these countries.
SW.Designators=PCV,YACNST ;and only near these thingies
SW.AutoFire=yes ;doing so automatically
SW.AITargeting=Base ;base center
SW.UseAITargeting=yes ;so the player never gets any control, even if the AI fails to fire for some reason
SW.ShowCameo=no
Action=Custom
SidebarImage=XXICON
ShowTimer=no
DisableableFromShell=no
SW.AllowPlayer=no
SW.AllowAI=no

;For Soviets
[UnholySW2]
UIName=NOSTR:Unholy Alliance
Name=Unholy Alliance Special
IsPowered=false
RechargeVoice=
ChargingVoice=
ImpatientVoice=
SuspendVoice=
Type=UnitDelivery
Deliver.Types=AMCV,PCV ;delivers Allied and Yuri MCVs
SW.AlwaysGranted=yes ;available from the start
SW.InitialReady=yes ;and I mean the very start
SW.Shots=1 ;but can  only be fired once
SW.RequiredHouses=Russians,Africans,Confederation,Arabs ;and only by these countries.
SW.Designators=SMCV,NACNST ;and only near these thingies
SW.AutoFire=yes ;doing so automatically
SW.AITargeting=Base ;base center
SW.UseAITargeting=yes ;so the player never gets any control, even if the AI fails to fire for some reason
SW.ShowCameo=no
Action=Custom
SidebarImage=XXICON
ShowTimer=no
DisableableFromShell=no
SW.AllowPlayer=no
SW.AllowAI=no

;For Allies
[UnholySW3]
UIName=NOSTR:Unholy Alliance
Name=Unholy Alliance Special
IsPowered=false
RechargeVoice=
ChargingVoice=
ImpatientVoice=
SuspendVoice=
Type=UnitDelivery
Deliver.Types=SMCV,PCV ;delivers Soviet and Yuri MCVs
SW.AlwaysGranted=yes ;available from the start
SW.InitialReady=yes ;and I mean the very start
SW.Shots=1 ;but can  only be fired once
SW.RequiredHouses=British,French,Germans,Americans,Alliance ;and only by these countries.
SW.Designators=AMCV,GACNST ;and only near these thingies
SW.AutoFire=yes ;doing so automatically
SW.AITargeting=Base ;base center
SW.UseAITargeting=yes ;so the player never gets any control, even if the AI fails to fire for some reason
SW.ShowCameo=no
Action=Custom
SidebarImage=XXICON
ShowTimer=no
DisableableFromShell=no
SW.AllowPlayer=no
SW.AllowAI=no



Now we have the superweapon code in the general rules, but is effectively disabled. Next open your Unholy Alliance game mode INI file. We'll enable the superweapons from there. We'll only be adding the code that gets changed.:

Code:
[UnholySW1]
SW.AllowPlayer=yes
SW.AllowAI=yes

[UnholySW2]
SW.AllowPlayer=yes
SW.AllowAI=yes

[UnholySW3]
SW.AllowPlayer=yes
SW.AllowAI=yes



That's it.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 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.1716s ][ Queries: 11 (0.0078s) ][ Debug on ]