Welcome, Guest. Please Login or Register.
09/06/10 at 13:06:49
News:

Pages: 1
Send Topic Print
Anti-Baserape Hanger Script (Read 2171 times)
MasterX=DCON=
System Administrator
DCON Staff
Energy Revolutions Research Dept.
*****


Desert Conflict
Coding Dept

Posts: 571
Gender: male
Anti-Baserape Hanger Script
05/17/07 at 00:16:40
 
This will kill any enemy that enters or gets on top of the hanger,
 
Open the GPO(gameplayobjects.con) file of your choice!
 
Step 1.
Paste the following code just above the controlpoint templates ex:

Code:
RIGHT HERE

rem ********** Control Points **********
rem [ControlPointTemplate: CPNAME_Iraqi_Main]
 


 
Heres the code:
Code:
ObjectTemplate.create SupplyObject killhanger_americans
ObjectTemplate.modifiedByUser psh
ObjectTemplate.createdInEditor 1
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.radius 31
ObjectTemplate.damageSpeed 50
ObjectTemplate.team 2

ObjectTemplate.create SupplyObject killhanger_iraqis
ObjectTemplate.modifiedByUser psh
ObjectTemplate.createdInEditor 1
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.radius 31
ObjectTemplate.damageSpeed 50
ObjectTemplate.team 1 


 
[b]Step 2.
Now open "staticobjects.con", Search for "hangar1" and copy the entire code block for each hanger1 you find to a notepad file

 
You should have 1 block like this from EACH hanger on the map with correct coords not ?/?/?:
Code:
rem *** hangar1 ***
Object.create hangar1
Object.absolutePosition ?/?/?
Object.rotation ?/?/?
Object.layer 1 


 
for the american hangers block change the following:
Replace Object.create hangar1 with Object.create killhanger_iraqis
 
for the iraqi hangers block change the following:
Replace Object.create hangar1 with Object.create killhanger_americans
 
Now paste both the blocks into the gameplayobjects.con file just after the controlpoints:
Code:
   rem [ControlPoint: CPNAME_South_Outpost]
   Object.create CPNAME_South_Outpost
   Object.absolutePosition -102.533/104.350/-459.717
   Object.layer 1

RIGHT HERE

endIf 


 
save, repackage into the zip in correct gpm and size folder
Back to top
 
 

Ma§†er}{
BKC Squad Leader - Retired
Owner Graebtech Gaming Network
Email View Profile WWW MasterX=DCON= masterxbkc 265028259 brenttg2000   IP Logged
Pages: 1
Send Topic Print