Jump to content


Photo

Making Nod Computer counter meassures a player special power


  • Please log in to reply
5 replies to this topic

#1 Stygs

Stygs
  • Members
  • 99 posts

Posted 14 September 2007 - 12:39 AM

Hi

I nearly finished my mod, only one thing is misssing - but as usual, that seems to be the hardest:

I want to change the Computer Counter Measures from the Nod temple to a real player power with a button on the left side.

But right now, the button apears nowhere, not on the left side nor in the HUD :/

I removed it from UnitAbilityButtonTemplates and added it to PlayerPowerButtonTemplates:
(I changed the IDs of both files)

<PowerButton
				id="SpecialPowerComputerCounterMeasures">
				<State
					Image="SpecialPowerComputerCounterMeasures"
					Title="NAME:PlayerPowerComputerCounterMeasures"
					TypeDescription="TYPE:PlayerPowerComputerCounterMeasures"
					Description="DESC:PlayerPowerComputerCounterMeasures" />
			</PowerButton>

I also added it to logicCommand and Logiccommandset.xml (note: I changed the buttonname):


<LogicCommand
		Type="SPECIAL_POWER"
		id="Command_TempleOfNodCounterMeasures">
		<SpecialPower>SpecialPowerComputerCounterMeasures</SpecialPower>
	</LogicCommand>


		id="NODTempleOfNODCommandSet">
		<Cmd>Command_TempleOfNodCounterMeasures</Cmd>

		id="PlayerSpellBookCommandSet">
		<Cmd>Command_TempleOfNodCounterMeasures</Cmd>


and I changed the "CommandButtonName" in the AISpecialPowerUpdate for the tempel...

But It wont show up :thumbsupsmiley:


What did I wrong?

Edited by Chriz, 14 September 2007 - 11:20 AM.


#2 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 14 September 2007 - 11:12 AM

Just to make sure, do you want it as normal player power (like Catalyst Missile, Tib Seed, etc) or as a superweapon (NuclearMissile)?

In the first case you'll probably only need to edit the SpecialPowerTemplate entry and make sure the attribute Flags contains IS_PLAYER_POWER (and maybe you'll also want SHARED_SYNC).

In the second case, well, you'd need to add a good deal of other stuff :thumbsupsmiley:

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#3 Stygs

Stygs
  • Members
  • 99 posts

Posted 14 September 2007 - 11:35 AM

as a player power, like catalyst and radar jamming missile :thumbsupsmiley:

Still wont work :/

<SpecialPowerTemplate
		id="SpecialPowerComputerCounterMeasures"
		Flags="IS_PLAYER_POWER SHARED_SYNC WATER_OK"
		ReloadTime="30s"
		TargetType="NONE"
		InitiateSound="NOD_MasterComputerCountermeasures"
		Money="-1500"/>


#4 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 14 September 2007 - 11:38 AM

Try adding a PlayerPowerManager block for it in System\PlayerSpellBook.xml.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#5 Stygs

Stygs
  • Members
  • 99 posts

Posted 14 September 2007 - 11:49 AM

thanks, it works now. :thumbsupsmiley:

Edited by Chriz, 14 September 2007 - 12:08 PM.


#6 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 14 September 2007 - 12:25 PM

Cool :thumbsupsmiley:

BTW, interesting quote in your signature there... :thumbsupsmiley:

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users