Page 1 of 1

Starting grenades

Posted: Tue Sep 11, 2007 11:19 pm
by CaptainPoopface
As far as I know, you can only choose whether you start with plasmas, frags, or neither. Whichever type you start with, you will start with two, even if the bipeds have a one-grenade carrying capacity. Is there a way to change this to, e.g., 4 plasmas and 6 frags to start?

I have searched the forum and found no satisfactory answer. In a post from a couple of years back, xbox7887 suggests using H2x, but my versions of H2x are missing the required scnr plugin, or H2x doesn't like my modded maps.

Is there another way?

Edit: I can think of a hacky, ugly way - start the biped with 2 modded grenades that each chain spawn half as many grenades (ammo) as you really want to start with. That's dirty though. I'm looking for a more legit solution.

Posted: Tue Sep 11, 2007 11:53 pm
by neodos
First you can start by changing the max count of grenades in the "grenades" reflexives in [matg] tag.

Posted: Tue Sep 11, 2007 11:58 pm
by CaptainPoopface
That does not affect starting grenades.

Posted: Wed Sep 12, 2007 10:13 am
by grimdoomer
in the biped mabey or equipment idk

Posted: Wed Sep 12, 2007 11:30 am
by UpsetSpy
IDK if this will cause the game to freeze but maybe duplicating the starting equipment chunk in the SCNR tag and just nulling out the weapon & swapping up the grenade types for the duplicated chunk.

Posted: Wed Sep 12, 2007 9:59 pm
by modsforfun
Ent bipd so grimdoomer is right. 8) ..just finished testing a map I've ben working on with 4sticky starting grunts and 20 for my {custom} bipd :wink:

Posted: Thu Sep 13, 2007 12:40 am
by CaptainPoopface
I have long since tried adjusting the settings in the [bipd] and [matg] tags, and they do not affect starting (STARTING) grenades for me, although of course they affect the grenade carrying capacity.

Are you sure, modsforfun?

Where is that magic "2" that sets the number of starting grenades? I have never run across it.

I have also tried cloning [eqip] chunks onto the grenade [itmc]s, with the intention that picking up (or starting with) each nade [itmc] would give you more than one nade, but that doesn't work.

EDIT: Great news! I found a reflexive in the XML plugin called Starting Profiles that has chunk for starting frag count and starting plasma count. I found a map that has a starting profile defined in it, and I set both the starting nade counts! :D

It didn't work.

So far, I think my dirty chain spawn solution is the only workable one.

Posted: Thu Sep 13, 2007 1:02 am
by neodos
Well the only sugestion that i have for you, is to try to add a spawning effect,like in coop, and by this effect spaw the greande equipt.
But i did never try to enable the spawning effect on MP.

Posted: Thu Sep 13, 2007 6:39 am
by xzodia
scnr Plugin wrote: <struct name="Player Starting Profile" offset="248" visible="True" size="68" label="Name">
<string32 name="Name" offset="0" visible="True" />
<float name="Starting Health Damage" offset="32" visible="True" />
<float name="Starting Shield Damage" offset="36" visible="True" />
<tag name="Primary Weapon" offset="40" visible="True" />
<id name="Primary Weapon" offset="44" visible="True" />
<short name="Rounds loaded" offset="48" visible="True" />
<short name="Rounds Total" offset="50" visible="True" />
<tag name="Secondary Weapon" offset="52" visible="True" />
<id name="Secondary Weapon" offset="56" visible="True" />
<short name="Rounds loaded" offset="48" visible="True" />
<short name="Rounds Total" offset="50" visible="True" />
<byte name="Starting Fragmentation Grenade Count" offset="64" visible="True" />
<byte name="Starting Plasma Grenade Count" offset="65" visible="True" />
<byte name="Starting -Unknown- Grenade Count" offset="66" visible="True" />
<byte name="Starting -Unknown- Grenade Count" offset="67" visible="True" />
</struct>

Posted: Thu Sep 13, 2007 10:13 am
by CaptainPoopface
Thanks Xzodia. It really looks like it should work, but it doesn't. Not for me. I set the values to 11 or 17, and I start with my 2 trusty nades every time.

The name of the starting profile chunk I think is "player profile_0". It's from an SP map. Is there something I need to do to activate or select the profile? I'd expect it to be chosen automatically when there's only one controller plugged in...

I'd be surprised if anyone knows what I'm talking about.

Posted: Thu Sep 13, 2007 10:21 am
by neodos
That's for SP won't work on syslink or more than 2 players >_>

Posted: Thu Sep 13, 2007 12:56 pm
by xzodia
well you could set item collections 3 to 6 in Starting Equipment to grenade collections, that at least would let you choose an extra 4 grenades

Edit: Just did a bit of poking around and came up with just what you need...or at least i know for certain what tag its in and im about 90% sure i found the right values

Get my new mulg plugin XD
(and while your there check out my new vehi plugin 0.9 its full of a lot of awsome and 100% correct new stuff)

Posted: Thu Sep 13, 2007 4:52 pm
by CaptainPoopface
Wow, the elusive "2" has been found at last.

The only thing is, I don't see any results from changing it... The indefatigable 2 remains.

Bugger.

I haven't tried your itmc suggestion for the starting equipment, but that sounds like a good idea. I always wondered what those extra slots were for. If it works, then cloning chunks there might be the solution, as UpsetSpy suggests.

Posted: Fri Sep 14, 2007 2:33 am
by xzodia
well i must have named the wrong value then however know for a fact that its somewhere in the mulg