logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,677
Total Threads: 8,798
Posts: 95,842

Administrators:
DeeZire, Redemption

There are currently 33 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 03-10-2006, 12:52 PM   #1 (permalink)
Senior Member
 
Join Date: Jul 2004
Location: London, UK
Posts: 376
Send a message via MSN to AntiSocialKindaGuy
Default Nexus Logic

Right, here we go. I currently have:

- A nexus that can be killed, which releases the slaves ( good ).
- The units target anything the nexus targets ( good ).
- Clicking on any slave selects all units of the nexus ( good ).
- The slaves have individual health and can be targetted individually ( good ).

- A nexus that cannot be targetted and who's health stays with the slaves ( bad ).
- Clicking on the nexus means only the nexus is selected ( bad ).

Ideally, I would like those bad things eliminating, particually the one where only the nexus is selected and not its slaves. If only the nexus is selected, I would also be content with the slaves following him. However, I do not want a shared health system.

I tried making the nexus unselectable, but then it doesn't move with the rest of the slaves. Any other KindOfs or adjustments to the slave logic that can help?

Some code snippets from the nexus:
Code:
  
 KindOf = PRELOAD CAN_ATTACK SELECTABLE INFANTRY MOB_NEXUS ATTACK_NEEDS_LINE_OF_SIGHT NO_COLLIDE CAN_CAST_REFLECTIONS SCORE 

Behavior            = SpawnBehavior ModuleTag_05
    SpawnNumber       = 8

        SpawnTemplateName = AmericaInfantryMarine
        SpawnTemplateName = AmericaInfantryM79Grenadier
        SpawnTemplateName = AmericaInfantryM60Gunner
        SpawnTemplateName = AmericaInfantryMarine
        SpawnTemplateName = AmericaInfantryMarine
        SpawnTemplateName = AmericaInfantryMarine
        SpawnTemplateName = AmericaInfantryMarine
        SpawnTemplateName = AmericaInfantryMarine

    ExitByBudding = Yes;!

    InitialBurst = 8
    OneShot     = Yes
    AggregateHealth = Yes
	SlavesHaveFreeWill = No
	SpawnedRequireSpawner = No
  End
AntiSocialKindaGuy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-10-2006, 02:07 PM   #2 (permalink)
Junior Member
 
Join Date: Feb 2006
Posts: 5
Default

what does this "nexus" code do?
cozmoisme is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-10-2006, 03:47 PM   #3 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

Umm he just said what it does... :drunk:
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-10-2006, 04:55 PM   #4 (permalink)
Junior Member
 
Join Date: Feb 2006
Posts: 5
Default

it this like an angry mob style thing or somthing?
cozmoisme is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-10-2006, 07:30 PM   #5 (permalink)
Senior Member
 
Join Date: Apr 2003
Location: Derby, UK / Den Haag, NL
Posts: 590
Default

The nexus is the central unit that you command when using the angry mob - it acts as a control for all sub-units that are spawned of it.
Ambershee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-11-2006, 08:46 AM   #6 (permalink)
Junior Member
 
Join Date: Feb 2006
Posts: 5
Default

thanks
cozmoisme is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-11-2006, 10:30 AM   #7 (permalink)
Senior Member
 
Join Date: Jul 2004
Location: London, UK
Posts: 376
Send a message via MSN to AntiSocialKindaGuy
Default

Quote:
it acts as a control for all sub-units that are spawned of it.
Yet for some reason, using the code above the spawned units don't follow the controller. :/
AntiSocialKindaGuy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nexus spawning too many units Ambershee Generals & Zero Hour Editing 3 01-08-2008 01:07 AM
AI Garrison Logic AntiSocialKindaGuy Generals & Zero Hour Editing 4 11-26-2005 08:50 AM
[SOLVED]Logic RedLeader Generals & Zero Hour Editing 2 01-24-2005 08:34 AM
Flying mob nexus? Fritz Generals & Zero Hour Editing 3 08-24-2004 06:12 PM
Mob nexus won't be transported Fritz Generals & Zero Hour Editing 3 07-12-2004 08:59 AM


All times are GMT -4. The time now is 09:48 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.