Renegade Projects Network Forums
Paradrops - Printable Version

+- Renegade Projects Network Forums (https://forums.renegadeprojects.com)
+-- Forum: Inject the Battlefield (https://forums.renegadeprojects.com/forumdisplay.php?fid=60)
+--- Forum: Ares General Discussion (https://forums.renegadeprojects.com/forumdisplay.php?fid=19)
+--- Thread: Paradrops (/showthread.php?tid=1106)



Paradrops - DCoder - 22.09.2008

Paradrop code can be modified to be a lot more flexible, I'm just not sure what should be considered a priority - custom parachutes, drop speeds, dropping units, multiple cargo types per plane, different cargo per side/country... So I'm asking for your opinions. The Proposal of radical alteration of Paradrop code might give you some ideas. I don't even know how to focus - e.g. should parachute anims be per-unit, per-sw, or something... Don't forget that all that will require new INI flags and I shudder to think what the more creative among you will come up with. Nonetheless, opinions are requested!


RE: Paradrops - MRMIdAS - 22.09.2008

I'd like each country to have their own customisable paradrop, (however you want to implement this is up to you)

But I'd like it like this:

[British]
ParadropUnits=E1,Snipe
ParadropNumber=5,1
PlaneNumber=1

SO, UNITS is the units dropped (be they tank or otherwise), NUMBER is how many (in order) and PLANE NUMBER is how many planes they come out of. (to increase/decrease the chance of the planes getting shot down)


RE: Paradrops - Marshall - 22.09.2008

I suggest the following.

[NewSuperweapon]
Type=NewParadrop
Paradrop.Plane=PDPLANE
Paradrop.Units=E1,MTNK
Paradrop.Num=6,2
Paradrop.Americans.Plane=DSHP
Paradrop.Americans.Units=E1,MTNK,GHOST
Paradrop.Americans.Num=8,2,1

...and so forth for all other countries.
If "Paradrop.[Country]." is not present then it falls back to the basic "Paradrop."

To make side-specific (as opposed to country-specific) paradrops, the modder would have to enter every country but that's just tough.

This discussion also gave me an idea (which I will go and raise an Issue for now) which could be particularly useful for paradrops - SW.RequiredHouses and SW.ForbiddenHouses.


RE: Paradrops - TheMan - 22.09.2008

I think DCoders ideas are very good and I hope to se them.


RE: Paradrops - DCoder - 22.09.2008

Not everyone wants a single plane packed to the brim, and that goes against the original logic... I can't think of a way to enumerate multiple planes and contents short of Paradrop.Country.Plane1Units = , Paradrop.Country.Plane2Units = and so on, with Paradrop.Country.PlaneCount ... but that would be a real bitch to code and a lot of memory taken up. Though I'm pretty sure I can get rid of the two separate lists for units and counts internally, that still leaves
Code:
        countries  planes   units
Vector<   Vector<  Vector<  TechnoTypeClass*> > >
, which is rather crazy.

What about the suggestion in the issue I linked to, where you just define taskforces/teams to invoke instead of enumerating each plane, e.g. Country.Taskforces = a, b, c, d ; ? That would reduce internal storage to
Code:
       countries  teams
Vector<  Vector<  TeamTypeClass *> >
which is reasonably simpler. Though getting that to work will prove hard still...


RE: Paradrops - 4StarGeneral - 23.09.2008

I say go with teamtypes, because its the most flexible system. You could even have them chrono in (not that that's paradrop logic, but hey). So what if you have to change some existing stuff, its a far better system, granted you have to know how to work teamtypes, but its not that hard to learn to do. Also, I'd say do ParachuteAnims per unit, just incase someone wants to use a different one for vehicles and whatnot.


RE: Paradrops - Guest - 23.09.2008

rami the guest writes: Tongue

could look like this
"ParaDropPlaneUnit=ADROP,SDROP,YDROP"
"ParachuteAnim=APRCHT,SPRCHT,YPRCHT"

maybe not that big customisation but shouldn´t be too hard to realise, since it makes sidespecific planes and parachutes


RE: Paradrops - Marshall - 23.09.2008

Would it not be easier to specify ParachuteAnim= on the unit rather than the SW?


RE: Paradrops - Nikademis Von Hisson - 10.11.2008

ok, does this mean that you can give each country their own paradrop? And if so what do you attach this to?? Or is this a thought still in process??


RE: Paradrops - mt. - 11.11.2008

(10.11.2008, 06:00:21)Nikademis Von Hisson Wrote: ok, does this mean that you can give each country their own paradrop? And if so what do you attach this to?? Or is this a thought still in process??

LOL. Already done I bielive, in original RP and NP, and probably implmented already.

Quote:Nonetheless, opinions are requested!


As for the custom parachutes, I've been struck by an idea:

Giving each unit a Parachute= tag, much would work much like a Weapon=

It would specify speed, direction (locomotor), image, and expireanim (when its at ground), as well as tags for effects only. Perhaps it could even have a health this way.
These would allow for a lot of customizability, as you can simply add allowed tags and logic onto it.

As for sides and superweapons, give a tag on the [country] like DefaultParachute= , and on the [superweapon] a possible override Parachute=

To simplify:

1. [General] GeneralParachute= (Normal Parachute).

2. [ONECOUNTRY] DefaultParachute= (Default for all units of that country).

3. [Unit] Parachute= (Unit specific Parachute).

4. [Superweapon or plane] OverrideParachute= (Overrides all the parachutes of the units it parachutes out).


Each one will be overrided by the one below, this is a very sensible way IMO, and allows for max customization.


RE: Paradrops - Guest - 02.10.2009

I hope its ok to bump Tongue 2 but something I thought about is The ParadropRadius= control for each different paradrop.

Another thing is maybe doing something like
ParadropPlaneUnit1=E2,E1,HTNK
ParadropPlaneNum1=4,2,3
ParadropPlaneTotal=1