Jundiyy
  • Jundiyy
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
1. So I have made another dozer for China, it makes advanced China buildings - I would like it to build at a faster speed than a regular dozer, is it possible?

If so, is it possible to only allow it to build it's own commandset at a faster speed (advanced buildings)?

2. So let's say the standard china dozer makes a scaffold of a barracks and this new dozer (doesn't have barracks in its commandset as it only has the advanced commandset) tries to make it, so instead of making it at its faster speed it would make it at the usual speed of the standard dozer? But when it makes it's own commandset buildings it makes them at it's own speed.

Question is my main concern, question 2 would just be a bonus.
Sponsor
AdrianeMapMaker
8 years ago
Well you Need to Change The Code of A Building -

Buildtime = 10 ; in seconds
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




Jundiyy
  • Jundiyy
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
I think you misunderstood me, I have edited it to make more sense.

I want the new dozer to build buildings faster than a standard dozer, so 115% faster for example.
Headkillah
8 years ago

Well you Need to Change The Code of A Building -

Buildtime = 10 ; in seconds

Originally Posted by: adrianemapmaker 



As adrianemapmaker wrotes, you have to change the code of a building to change the buildtime ... It´s not possible to change this in the code from the dozer..

Example from Object GLAHole:

Search for "BuildTime", you will find "BuildTime = 10.0". Change this to your desired value, maybe 5 seconds.

BUT, if you want ADVANCED buildings, you should have to copy the whole code for the Object GLAHole, change the Object name (maybe from GLAHole > GLAHoleAdvanced) and make the rest of your changes incl. build time and VOILA, the new hole needs only 5 secs to finish 🙂
Jundiyy
  • Jundiyy
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
Thanks for your help.
I'm not trying to sound arrogant but yes I know that part thanks :)

I just want to know if it is possible to make a dozer build faster/slower - I'm sure I played a mod once, maybe Contra, it said something about building at a different speed, but this was some time ago so I can't remember.

The problem with what you have mentioned is that, I could still use the old dozer to finish off the scaffold of the advanced building and the advanced building would still build at the same (faster) time as it would have done with the advanced dozer, but what I want is, if the old dozer makes the barracks it takes 10 secs but if the advanced dozer makes the same barracks it takes 7 secs.

Or as I mentioned before, the advanced dozer puts a scaffold down for an advanced barracks and the old dozer completes it, so rather than being built faster, it will be built slower due to the old dozer making it...makes sense? lol.

But you said it can't be done so forget my thoughts lol - maybe I just imagined reading that on a mod/playing on a mod.

Thanks a lot for trying to help (hope I didn't seem arrogant).
Headkillah
8 years ago
No problem, you don´t sound arrogant :)

And yes, i know what you mean, i make the same for my little mod 😉 And it´s not possible to change the dozer code to do this. The only way you can do this is by copying the code for the building, change the OBJECT name to maybe "USAbarracksAdv", set the build time to 7 sec (and maybe change the rest of the code (other model, heavier armor etc.))

Then give your advanced dozer a commandset / commandbutton, and don´t forget to make new commandsets/commandbuttons for your advanced barracks, so the dozer is only able to build such advanced buildings. And then you´ve got exactly what you want:

Normal dozer / normal barracks: Buildtime = 10 sec
Adv. dozer / adv barracks: Buildtime = 7 sec (or less...)

Or if you want ONLY 1 kind of barracks, change the buildtime from the normal barracks to 7 sec, it´s your decision ;)

If you make it this way, you will not have any problems... I do this for my vehicles etc. too. My advanced dozer has an PDL, drives faster and has better armor, but can build anything 🙂
Jundiyy
  • Jundiyy
  • 50.25% (Neutral)
  • Captain Topic Starter
8 years ago
Thanks so much for helping and especially being patient with me :)
I am a complete noob and I know that - I don't mod regularly, perhaps started 2-3 months ago but I do a few days then stop for a week or two then again few days when I have time. So I have probably covered 6-7 weeks of modding.

I have an advanced China dozer as well 🙂 it is a bit smaller than the original, bit faster, bit more HP but of course costs more, also has speaker tower on it but not much radius. It builds my new buildings which I have 'made' (basically copied over another building or merged something together). I am going to try download contra and the other mods I have played in the past (not to prove you wrong lol but) to check what the dozer specifics were as I read something and I went "oh cool" so I want to know what made me say that.

I'm also a complete noob at Gmax, only just managed to find out how to select something lol - I originally installed it to change the colour of a plane - which even after some help on this forum I still didn't understand lol. Anyways being the noob I am I have managed to make about 25 or so units/buildings - not gone too much for making them equal amongst the 3 factions yet but just make whatever I can for now - trying to keep some balance by not making them OP units. I do have a video of my modded stuff from quite a while ago on my YouTube channel (Jundiyy) but won't post it as not sure if allowed to.