Mod Question Repository... Questions come in, answers go out - Page 8

Mod Question Repository... Questions come in, answers go out

Resources to get you going on your new project, or to help you over some emergent problems during your development cycle.

Moderator: Moderators

Locked
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Post by MadRat »

Abokasee wrote:Can you have a minus impulse attack like impulseboost -5.095? so it drags units toward it?
That is a good question. I bet the answer is no. But the difference is the current function probably discards sub-zero computational results.
User avatar
Abokasee
Posts: 222
Joined: 03 Nov 2006, 21:51

Post by Abokasee »

MadRat wrote:
Abokasee wrote:Can you have a minus impulse attack like impulseboost -5.095? so it drags units toward it?
That is a good question. I bet the answer is no. But the difference is the current function probably discards sub-zero computational results.
LOL I treid it, instead of them pushed back as usual when you have +impulse instead it flings them in the air :lol: and if its a beam weapon you can have a sort of sling shot XD
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

imb: A weapon with a very small arc that points directly downwards and set MAX_SPEED to 0 when it fires.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

MadRat wrote:
Abokasee wrote:Can you have a minus impulse attack like impulseboost -5.095? so it drags units toward it?
That is a good question. I bet the answer is no. But the difference is the current function probably discards sub-zero computational results.
The answer is no because if it works at all, it would pull the enemy unit towards the collision point OR it will just flip directions.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

kdr: thanks, tried several combinations of BOS/FBI/weapon TDF and one worked ^^ now off to add some magic Lua topping...
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

So.. What do I need to do to make it keep the turret in place?

I have turret=0 and all the aiming scripts set up and maxangle and main weapon set up, too! Why doesn't it work..?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Keep the turret in place? Just don't script any attacking animation. Make it only shoot at the front? Use WeaponMainDirX and MaxAngleDiffX.

Turret=0 is meant for airplanes, don't use it for other stuff.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Ahhhh, much clearer, now.

Thanks a lot. :mrgreen:
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

HELL YEAH! The factory works! Units and everthing, not a slight problem!
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Okay, quite a weird problem...

15000 worker time, and 2 build time, and it takes it about 1 minute to build :shock:
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Did you set INBUILDSTANCE to 1?
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Yeah, sure did :lol:

Oh well, if it works with the other buildings I could care less.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Also 15000WT on 2 BT will cause a huge resource usage.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Well, its 300 metal and 1 energy.... I really have no idea what is going on right now...


But, my factory has 100 workertime or so, builds a tank that cost 200 metal, and has a buildtime of 1000... And it works fine, roughly builds one every ~20 seconds (10 second error margin, I forgot the exact number).
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Yes but the smallest increment Spring can build is 1/32 of the Workertime, for 16000 workertime that would be 500. If a unit costs 5 metal and has a BT of 1 while being built by something with a WT of 16000 the player ends up paying 2500 metal.
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

That's why I know its screwed up...

I was talkin to Chris and I said "There is no way in hell it should be taking more than 1/1000th of a second or so!" and, I can't find a fix...
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Do you have the resources? I know I had such buildtimes when I didn't set INBUILDSTANCE to 1 and the builder kept adding some "idle value" to the construction (probably used to avoid decay even when stalling).
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Resources? metal and energy?

Of course, its one of the first things you can build, so I dunno...

If you wanna see scripts/fbi, I can drop em off in a PM...
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Do you have ~250 times the cost of the unit in your storage?
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

250 times? Nope.

Is there any way to make a transport load units up at a specific part or parts?
Locked

Return to “Game Development Tutorials & Resources”