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

Forum Info
Forum Members: 18,643
Total Threads: 8,744
Posts: 95,520

Administrators:
DeeZire, Redemption

There are currently 25 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements

DeeZire Online > Editing Community > Command and Conquer Editing > Generals & Zero Hour Editing » HOW? Build Civilian cars from New Structure

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

Reply
 
LinkBack Thread Tools
Old 09-30-2003, 09:39 PM   #11 (permalink)
Junior Member
 
Join Date: Sep 2003
Location: New Zealand
Posts: 12
Send a message via MSN to Ender
Default

ComradeJ - there are no motorcycles in Generals. They are in Zero Hour.

Quote:
The cars are built with some OCL logic that creates a different object together with the car. The object instantly dies, and then fires a weapon which uses the KILL_PILOT damage type to make the car neutral.
Sounds sparkly. Kill the pilot, yes, something like what Jarmen Kell does to vehicles. I'll look at his code too. It may be impossible :/ , but never mind, it's interesting.
Ender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-08-2003, 02:46 AM   #12 (permalink)
Junior Member
 
Join Date: Sep 2003
Location: New Zealand
Posts: 12
Send a message via MSN to Ender
Default

Having looked at the CivilainUnit.ini code, it seems that ALL civilian cars are suicide, its just that only terrorists can enter them. :tard:
Quote:
Object CarLuxury01

; *** ART Parameters ***
SelectPortrait = SUTerrorist_L
ButtonImage = SUTerrorist
.....

WeaponSet
Conditions = CARBOMB
Weapon = PRIMARY SuicideCarBomb
End
See, they also have the terrorist cameo. The only reason you don't ever see this in the game is that a) you never build civilian cars directly so don't own them and see the cameo until b) a terrorist enters it (the only unit that can capture civilian cars.) If the Kill_Pilot thing works like Jarmen Kell then wouldn't any unit friend or foe be able to get into it?
Don't accuse me of asking for help before looking for myself, this isn't a plea for help right now, because I haven't even found out whether I have a problem yet. Which might be your point. But. I am about to continue work on it.
Ender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-08-2003, 02:52 AM   #13 (permalink)
Junior Member
 
Join Date: Sep 2003
Location: New Zealand
Posts: 12
Send a message via MSN to Ender
Default

At the risk of sounding like either a teacher or a nerd, here is a 're-cap' of what I'm trying to do, with changes from the original plan:

I'm making a new building for GLA which will be a car yard thing where you can purchase civilian cars for terrorists for maps that don't come with enough cars. Terrorists aren't good on foot. It will build 'used cars' which will be your average crappy car, 'new cars' which will go faster and have a little more armour, 'pickup trucks' which will go slower but be much more armoured, and 'nuke trucks', which featured in one mission and include a nuclear bomb on the back. 'One point five thousand dollars and thirty seconds of your time while we follow our dodgy leads to acquire this please'.


Here is the beginning of how new cars will be built, based on the Technical code:
Quote:
;------------------------------------------------------------------------------
; this unit is never really "built"; building one triggers the random building of
; one of the other chassis. If you want a *specific* chassis, choose it explicitly;
; if you want a chassis at random, specify this.
Object GLAVehicleNewCar
; *** ART Parameters ***
SelectPortrait = NewCar100
ButtonImage = NewCar50

Draw = W3DModelDraw ModuleTag_01
DefaultConditionState
; give it a model so it'll show up in WB
Model = CarLuxury01
End
End

; set cost and time fields here or else they won't work
BuildCost = 200
BuildTime = 5.0 ;in seconds


Side = GLA
EditorSorting = VEHICLE
BuildVariations = CarLimo1 CarLimo2 CarLimo3 CarLuxury01 CarLuxury02 CarLuxury03 CarSUV01

KindOf = SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAN_CAST_REFLECTIONS VEHICLE

End
At this stage it does not have any way of civilianifying itself, but I'll get to that in due course... ....and when I do I'll most definitely need help. You can help in advance if you can, but bear in mind that you can't ask me exactly what the question is because aside from what I've already said I have no idea myself. But then again by the time I next look at this here forum I may well know exactly what the question is, so you could ask me then. But if I did find out the question, and did visit this forum, then I would post the question so everyone knew what I was asking. Whoa, there's not any forum rule against driving oneself and possibly others mad with tired ramblings of a shallowly philosophical nature are there? :dead: :sleep:
Ender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-08-2003, 10:45 AM   #14 (permalink)
Senior Member
 
Join Date: Jul 2003
Posts: 342
Default

one idea would be to drop civilian cars out of a plane and make it like a supply dropzone building that would solve the lack of cars
in ZH u can attach parachutes to them look at the tank drop
pieten is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-08-2003, 02:31 PM   #15 (permalink)
Junior Member
 
Join Date: Sep 2003
Location: New Zealand
Posts: 12
Send a message via MSN to Ender
Default

Two points: one, I don't have Zero Hour
and two, although it would solve door animation problems, it would introduce worse plane animations. Or it would for incompetants like me, but its probably not even possible in Generals1 I wouldn't know.
Ender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-08-2003, 02:42 PM   #16 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: Canada
Posts: 1,097
Send a message via MSN to Oldfaq
Default

not possible to do what? build civilian vehicles? if thats what ur saying, I have to say that it is the easiest thing to! if u want it done in Generals I can probably do it for u
oldfaq
Oldfaq is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-08-2003, 02:47 PM   #17 (permalink)
Junior Member
 
Join Date: Sep 2003
Location: New Zealand
Posts: 12
Send a message via MSN to Ender
Default

Actually in my last post the thing I was saying I thought would be impossible was to have a plane drop vehicles. I don't yet know whether its impossible to make civilian cars like the ones that exist on the maps originally. It might only be possible to make empty team vehicles(like the ones Jarmen Kell has shot) that can be captured by any ranger or red guard passing through.

And thanks for the offer, I will see if I need to accept it.
Ender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-08-2003, 06:57 PM   #18 (permalink)
Member
 
Join Date: Sep 2003
Posts: 52
Default

my guess would be there's something in the civilian car code that allows only terrorists to enter it....the internet center has something similar for hackers, though i dont know if that would work with original generals....

[EDIT] i looked into this. net center uses some special behavior made up just for it...not sure it could even be used on a vehicle, and in any case, it does it with a line
Code:
AllowInsideKindOf     = MONEY_HACKER
i have no idea what other values, if any, can be used there as i believe this is the only instance this code is ever used.... [/EDIT]


as for emptying the car....the easiest way i can think of is to give it an invisible drone which dies after a second or so and emits a small neutron blast (erm...that might be another ZH only thing....is it possible to do a killpilot blast?)

[EDIT]on second thought, just kill the car after a second or two (long enough for it to get out of the factory)...look into the poison code...i've seen it used for this before...and have a condition that on death it spawns a civilian car (check out ObjectCreationList.ini). Should work great. Only issue I forsee is that you might end up with a traffic jam if you start pumping out these cars and dont fill them with terrorists to take them away. You might be able to take away their solidity though, so that cars and other vehicles can pass thru them....[/EDIT]
Kaldak 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
Dozer won't build new Structure ? adamstrange Generals & Zero Hour Editing 2 01-07-2008 05:06 PM
Make AI steal cars Tomtaru Red Alert 2 & Yuri's Revenge Editing 27 08-31-2005 08:10 AM
Build Time and Build Cost problem Tesla-Chrono LOTR: Battle For Middle Earth I & II Editing 23 12-18-2004 09:51 AM
TS Civilian Building Big_Jah Red Alert 2 & Yuri's Revenge Editing 4 12-12-2004 02:22 PM
Looking for civilian assets DJBREIT Red Alert 2 & Yuri's Revenge Editing 0 09-01-2003 09:42 PM


All times are GMT -4. The time now is 06:17 PM.


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