Data Realms Fan Forums http://45.55.195.193/ |
|
newbie questions http://45.55.195.193/viewtopic.php?f=1&t=11749 |
Page 1 of 2 |
Author: | goiduranus [ Sun Jul 20, 2008 4:35 am ] |
Post subject: | newbie questions |
Hi, I have several questions 1. How are the control scheme of each unit determined? say, how does the game know that when I click, dropships open their doors, but dreadnaughts will fire their guns? 2. What determines whether a unit is a dropship or a dreadnaught or etc? can I mod dreadnaught to carry units? I've tried giving a dropship a turret, but so far this crashes the game while loading ini. Edit: New question, are there any examples of weapons with submunitions? like cluster bombs that open up to deploy a bunch of smaller bombs? |
Author: | The Fat Sand Rat [ Sun Jul 20, 2008 5:24 am ] |
Post subject: | Re: newbie questions |
goiduranus wrote: Hi, I have several questions 1. How are the control scheme of each unit determined? say, how does the game know that when I click, dropships open their doors, but dreadnaughts will fire their guns? 2. What determines whether a unit is a dropship or a dreadnaught or etc? can I mod dreadnaught to carry units? I've tried giving a dropship a turret, but so far this crashes the game while loading ini. 1. It's hardcoded. It cannot be changed by the user; only Data can change it. 2. You might notice that the code mentions such things as AHumans and ACrabs. These indicate what kind of actor it is. Only craft in the rocket or dropship class can be used to order troops. Only ACrabs can have turrets. I can't explain very well, but a unit could be carried on the turret of a dreadnaught, but it'd just have the one unit. |
Author: | goiduranus [ Sun Jul 20, 2008 5:40 am ] |
Post subject: | Re: newbie questions |
cool thanks. hope there will be a gunship eventually. Edit: New question, are there any examples of weapons with submunitions? like cluster bombs that open up to deploy a bunch of smaller bombs? |
Author: | Geti [ Sun Jul 20, 2008 8:41 am ] |
Post subject: | Re: newbie questions |
yes, make the bombs explosion gib more bombs, like so. Code: AddDevice = TDExplosive <bomb code here> ParticleNumberToAdd = 1 AddParticles = TDExplosive CopyOf = <other bombs name here> |
Author: | goiduranus [ Sun Jul 20, 2008 10:45 am ] |
Post subject: | Re: newbie questions |
ty |
Author: | goiduranus [ Tue Jul 22, 2008 6:24 am ] |
Post subject: | Re: newbie questions |
another question: Can bombs be made to explode a while after being dropped from a dropship? I know it can be made explode a while after being thrown by an Ahuman, or made to disappear after a while without exploding by using "lifetime". |
Author: | Grif [ Tue Jul 22, 2008 7:15 am ] |
Post subject: | Re: newbie questions |
A dropped bomb should have TimeDelay, but if it doesn't, here's what you do. Make a super-high mass MOPixel. 1000+. Make an emitter, which emits the pixel. EmissionCountLimit = 1, and ParticlesPerMinute to a decimal value, or for a grenade, probably about 12. (it emits one particle every five seconds, meaning it's a five second grenade). Make sure PushesEmitter = 1. Make your bomb, and give it a fairly high GibImpulseLimit; enough that it won't gib on impact, but it still has one and will gib from the emitter. Add the emitter to the bomb with this code: AddEmitter = AEmitter CopyOf = <emitter> |
Author: | Ragdollmaster [ Tue Jul 22, 2008 4:37 pm ] |
Post subject: | Re: newbie questions |
goiduranus wrote: 1. How are the control scheme of each unit determined? say, how does the game know that when I click, dropships open their doors, but dreadnaughts will fire their guns? Alternate response; it depends on the kind of actor you have. The dreadnought, for instance, is an ACrab. It has an integrated weapons system and moves on a crab's legs. The AHuman class depends on picking up weapons that are dispensed via dropship or by dead soldiers. Dropships and Rockets have their own class and their own integrated control scheme, as does any actor. For example, if you hold down the right mouse button by default, a ring appears around your actor showing the commands; you can usually tell a class from the commands available. For instance, the AHuman class has several commands; Reload, Next Weapon, Gold Dig Mode, Go-To Mode, Sentry Mode, Patrol Mode, Previous Weapon, and Buy Menu. ACrab has reload, patrol, sentry, and go-to modes, along with buy menu. ADropship or ARocket has Return, Stay, Deliver Cargo, Buy Menu, Scuttle/Self-Destruct, and Buy Menu. I hope that answers your question a bit more throughly then "It's hard-coded." |
Author: | goiduranus [ Wed Jul 23, 2008 12:47 am ] |
Post subject: | Re: newbie questions |
tks for reply; and that trick with using emitters for impulse damage is genius, I'll have to try that. |
Author: | Darlos9D [ Wed Jul 23, 2008 2:37 pm ] |
Post subject: | Re: newbie questions |
Grif wrote: A dropped bomb should have TimeDelay, but if it doesn't, here's what you do. Make a super-high mass MOPixel. 1000+. Make an emitter, which emits the pixel. EmissionCountLimit = 1, and ParticlesPerMinute to a decimal value, or for a grenade, probably about 12. (it emits one particle every five seconds, meaning it's a five second grenade). Make sure PushesEmitter = 1. Make your bomb, and give it a fairly high GibImpulseLimit; enough that it won't gib on impact, but it still has one and will gib from the emitter. Add the emitter to the bomb with this code: AddEmitter = AEmitter CopyOf = <emitter> Wouldn't the emission "build up" inside of a dropship? Or do things really just not spawn at all until released from drop ships? I know emissions can build up on weapons not currently being used by an actor, but in their inventory. |
Author: | Tea [ Wed Jul 23, 2008 3:07 pm ] |
Post subject: | Re: newbie questions |
Things build up in a dropship in the same way they do in an actor's inventory. |
Author: | Shook [ Wed Jul 23, 2008 3:13 pm ] |
Post subject: | Re: newbie questions |
It is possible to bypass that though. Just make a pre-bomb that instantly gibs into the real timed bomb. I did this on the Inert Fireball, and it always gibs 0.25 secs after the release, regardless if it's from an actors hands, from a drop ship or just spawned in the bunker editor. It's worth a try me thinks >.> |
Author: | Darlos9D [ Wed Jul 23, 2008 7:36 pm ] |
Post subject: | Re: newbie questions |
Shook wrote: It is possible to bypass that though. Just make a pre-bomb that instantly gibs into the real timed bomb. I did this on the Inert Fireball, and it always gibs 0.25 secs after the release, regardless if it's from an actors hands, from a drop ship or just spawned in the bunker editor. It's worth a try me thinks >.> Ah, good idea. |
Author: | goiduranus [ Wed Jul 23, 2008 8:06 pm ] |
Post subject: | Re: newbie questions |
How did you make your pre-bomb gib 0.25 seconds after release? |
Author: | Mind [ Wed Jul 23, 2008 10:56 pm ] |
Post subject: | Re: newbie questions |
make two bombs-First make a fake bomb. At the end of the code add this AddGib = Gib .......GibParticle = TDExplosive .............CopyOf = [The Real Bomb] .......InheritsVel = 1 .......Count = 1 .......MinVelocity = 0 .......MaxVelocity = 0 .......Spread = 0 And make the triggerdelay 250(Milliseconds) or whatever you want ( You should have the code of the real bomb above this) Please correct me if I'm wrong I think that's what he wants |
Page 1 of 2 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |