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

Forum Info
Forum Members: 18,642
Total Threads: 8,744
Posts: 95,513

Administrators:
DeeZire, Redemption

There are currently 20 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 11-14-2004, 11:59 AM   #1 (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 Saboteur Logic

I'm working with the Spy in ReGeneration and so far the Saboteur code seems to be the most interesting to use for this. I think I know which condition triggers which module:

(activated with FS_POWER KindOf?)
Code:
  Behavior = SabotagePowerPlantCrateCollide       SabotageTag_01
    BuildingPickup = Yes
    SabotagePowerDuration = 30000
  End
(activated with FS_SUPPLY_DROPZONE KindOf?)
Code:
  Behavior = SabotageSupplyDropzoneCrateCollide   SabotageTag_02
    BuildingPickup  = Yes
    StealCashAmount = 800
  End
(activated with FS_SUPERWEAPON KindOf?)
Code:
  Behavior = SabotageSuperweaponCrateCollide      SabotageTag_03
    BuildingPickup = Yes
  End
(activated with COMMANDCENTER KindOf?)
Code:
  Behavior = SabotageCommandCenterCrateCollide    SabotageTag_04
    BuildingPickup = Yes
  End
(activated with FS_SUPPLY_CENTER KindOf?)
Code:
  Behavior = SabotageSupplyCenterCrateCollide     SabotageTag_05
    BuildingPickup  = Yes
    StealCashAmount = 1000
  End
(activated with FS_FACTORY KindOf?)
Code:
  Behavior = SabotageMilitaryFactoryCrateCollide  SabotageTag_06
    BuildingPickup = Yes
    SabotageDuration = 30000
  End
(activated with FS_FAKE KinfOf?)
Code:
  Behavior = SabotageFakeBuildingCrateCollide     SabotageTag_07
    BuildingPickup = Yes
  End
(activated with FS_INTERNET_CENTER KindOf?)
Code:
  Behavior = SabotageInternetCenterCrateCollide   SabotageTag_08
    BuildingPickup = Yes
    SabotageDuration = 15000
  End
But even then I don't know what all of these modules do. They all have BuildingPickup = Yes, but I have no idea what that's for. I'm guessing the power plant and internet center get powered down, and the supply centers have money stolen. But what about the others? Does anyone have any experience with this?
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-14-2004, 01:32 PM   #2 (permalink)
Senior Member
 
Join Date: Nov 2003
Location: The Netherlands
Posts: 794
Send a message via MSN to The_Hunter
Default

i think only deezire can awser this
The_Hunter is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-14-2004, 02:12 PM   #3 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
Default

Doesn't the Saboteur just power down all the structures except the one's where he takes money?
Mishkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-14-2004, 02:19 PM   #4 (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

Well I don't know, I didn't play ZH that much before I started on ReGen. But if that's so, then isn't it a dead giveaway for a fake building if you disable it when you should get money?
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-14-2004, 02:59 PM   #5 (permalink)
Administrator
 
DeeZire's Avatar
 
Join Date: Dec 2002
Posts: 1,913
Send a message via ICQ to DeeZire
Default

^ I enabled them all in ProGen.

They all have BuildingPickup because the modules on the Saboteur are handled in exactly the same way as crate pickups like money - see the Supply Drop Zone crate for another example.

PowerPlantCrateCollide shuts down structures with FS_POWER KindOf.

SupplyDropzoneCrateCollide steals cash from structures with FS_SUPPLY_DROPZONE KindOf (Im sure it also works with FS_BLACK_MARKET KindOf too).

SuperweaponCrateCollide resets the timers on superweapons on structures with FS_SUPERWEAPON KindOf.

SabotageCommandCenterCrateCollide resets all Generals Abilities on structures with COMMANDCENTER KindOf.

FakeBuildingCrateCollide instantly destroys the structure if it has FS_FAKE KindOf.

SupplyCenterCrateCollide steals cash from structures with FS_SUPPLY_CENTER KindOf.

MilitaryFactoryCrateCollide shuts down structures with FS_FACTORY KindOf.

InternetCenterCrateCollide shuts down structures with FS_INTERNET_CENTER KindOf.

The reason why different structures were given different collision condition modules is because you dont want the Saboteur stealing the same amount of money from any structure (they all produce different amounts of money at different rates) so this way you can specify the amount to steal on a per-KindOf basis - the same goes for shutting things down.
DeeZire is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-14-2004, 05:06 PM   #6 (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

Ah thanks for clearing that up. At least I was right on the KindOfs... So SuperweaponCrateCollide and CommandCenterCrateCollide do the same, but to different KindOfs? And regarding crates, it would be possible to create almost any effect with collision, by using the UnitCrateCollide, right? 'Cause I'm wondering if I can enable the "infiltrate radar to see all enemy units" logic from the RA1 spy. The only problem is that UnitCrateCollide isn't meant for one specific structure like the others are...
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-17-2004, 11:09 AM   #7 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: Earth
Posts: 339
Send a message via MSN to FleetCommand Send a message via Yahoo to FleetCommand
Default

With respect to what you said about the BuildingPickup, is it possible to make the Saboteur go near a building, spend some time, disable it, then be available for another go?
FleetCommand is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-02-2005, 08:09 PM   #8 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
Default

^^^^^Deezire's post. I presume that you listed all the saboteur can do. There isn't anything else?
Mishkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-03-2005, 01:01 AM   #9 (permalink)
Member
 
Join Date: Aug 2004
Location: Tha 4 C'z
Posts: 56
Send a message via Yahoo to PhenoX
Default

HELL YEAH! . I never knew those "CrateCollide" tagz even existed. I must not have gotten to that INI yet with organizing detail......oh, that's why. I haven't made it to the "GLAInfantry.ini" yet. HAH! I'm wipeing that file CLEAN...... Anywho, for Radar, could you somehow make a new "KindOf"? Or is that coded in a eXe or somethin? Wish I knew Reverse Engineering...



Quote:
Well I don't know, I didn't play ZH that much before I started on ReGen
I played the ZH USA missionz to get a feel for all the new shit and went right to work on Cloning and Organizing my work from Generalz. Right now I know my way around most my INI'z, like the pixelz on my screen.



P h e n o X
PhenoX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-03-2005, 11:10 PM   #10 (permalink)
Senior Member
 
CommieDog's Avatar
 
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 375
Default

Quote:
Originally Posted by PhenoX";p=&quot View Post
Anywho, for Radar, could you somehow make a new "KindOf"? Or is that coded in a eXe or somethin? Wish I knew Reverse Engineering...
I don't believe there is any way to add a new KindOf through the INI files. But you could use BOAT as it isn't used for anything terrible important.

Quote:
Originally Posted by PhenoX";p=&quot View Post
I played the ZH USA missionz to get a feel for all the new shit and went right to work on Cloning and Organizing my work from Generalz. Right now I know my way around most my INI'z, like the pixelz on my screen.
The letter 'S' doesn't want to hurt you. It only wants to be your friend.
CommieDog 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
Help with Saboteur Ability? (not kill self on use) lil-bondy Generals & Zero Hour Editing 12 07-27-2006 07:27 PM
Nexus Logic AntiSocialKindaGuy Generals & Zero Hour Editing 6 03-11-2006 09:30 AM
Crushing Logic Cattman2236 Generals & Zero Hour Editing 15 01-18-2006 01:21 PM
AI Garrison Logic AntiSocialKindaGuy Generals & Zero Hour Editing 4 11-26-2005 07:50 AM
Parachute logic EvilViking Generals & Zero Hour Editing 7 05-20-2004 06:47 AM


All times are GMT -4. The time now is 05:11 AM.


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