Author Topic: Maniplate grenadeamount and ammo?  (Read 1575 times)

0 Members and 3 Guests are viewing this topic.

Offline TheToast

  • Major
  • *
  • Posts: 52
Maniplate grenadeamount and ammo?
« on: November 19, 2007, 08:56:27 pm »
Hi,

is there a possibility to manipulate the amount of the Grenades or the munition of the Weapons? i.e. giving a player more ammo than the maximum (wich is configured in the ini)?

Offline 1221995

  • Soldier
  • **
  • Posts: 206
Re: Maniplate grenadeamount and ammo?
« Reply #1 on: November 19, 2007, 09:36:30 pm »
I think thats possible with ammo, using force weapon, but setting it to their current wepon, just more ammo. Im not sure about nades tho... the best i can think of is spawning a nade pack above hed, but that would only giv the maximum grenades  ;)

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Maniplate grenadeamount and ammo?
« Reply #2 on: November 20, 2007, 06:23:51 am »
A work-around for the nade thing could be doing Command('/loadcon ___') GiveBonus(...) Command('/loadcon soldat.ini') or something like that, where as in the ___ file, the max grenades is whatever u want it to be. Although, if I recall correctly, when doing /loadcon, it has a server msg that comes up..

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1904
Re: Maniplate grenadeamount and ammo?
« Reply #3 on: November 20, 2007, 07:35:25 am »
A work-around for the nade thing could be doing Command('/loadcon ___') GiveBonus(...) Command('/loadcon soldat.ini') or something like that, where as in the ___ file, the max grenades is whatever u want it to be. Although, if I recall correctly, when doing /loadcon, it has a server msg that comes up..

/loadcon restarts the server, kicking all players out.

Offline TheToast

  • Major
  • *
  • Posts: 52
Re: Maniplate grenadeamount and ammo?
« Reply #4 on: November 20, 2007, 07:39:34 am »
Giving the maximum should be no problem with the Spawn function.

I want a maximum of four grenades (wich is standard, i think), but in the beginning i want nobody to havy any grenades. Is this possible?

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1904
Re: Maniplate grenadeamount and ammo?
« Reply #5 on: November 20, 2007, 08:57:15 am »
I want a maximum of four grenades (wich is standard, i think), but in the beginning i want nobody to havy any grenades. Is this possible?
Not in any way that I can think of, no.

Offline TheToast

  • Major
  • *
  • Posts: 52
Re: Maniplate grenadeamount and ammo?
« Reply #6 on: November 20, 2007, 11:19:25 am »
Aha, ok, i didn't find any function for it, but i hoped there is one :D

So, /loadcon kicks all Players, i guess it's not possible to change any Weaponsettings during the game, right?

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1904
Re: Maniplate grenadeamount and ammo?
« Reply #7 on: November 20, 2007, 11:33:25 am »
So, /loadcon kicks all Players, i guess it's not possible to change any Weaponsettings during the game, right?

Correct; you can't change any soldat.ini settings on-the-fly apart from those settings you can change via scripting functions (if there even are any -- I can't recall one that does though).  You can still change weapons.ini though, although I assume that's not what you meant by saying "weapon settings". ;)

Offline sai`ke

  • Camper
  • ***
  • Posts: 318
  • Can't be arsed to remove christmas avatar
Re: Maniplate grenadeamount and ammo?
« Reply #8 on: November 20, 2007, 11:37:05 am »
As a compromise, you could give everybody one grenade initially by setting the limit to one and replenish them while keeping track of a grenade counter per player ID via a script.
#soldat.ttw #ttw.gather --- Quakenet!
http://ttwforums.com

Offline TheToast

  • Major
  • *
  • Posts: 52
Re: Maniplate grenadeamount and ammo?
« Reply #9 on: November 20, 2007, 12:03:09 pm »
That's a good idea i think that'll work.

Toumaz: But Weapon.ini settings aren't applied until Server restart or /loadcon, isn't it?

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1904
Re: Maniplate grenadeamount and ammo?
« Reply #10 on: November 20, 2007, 12:04:56 pm »
Toumaz: But Weapon.ini settings aren't applied until Server restart or /loadcon, isn't it?
/loadwep <name of ini file without the .ini extension>
Do note that that will cause all players in the server to reload their weapons or something along those lines, so on a second thought it might not fit your needs either.

Offline TheToast

  • Major
  • *
  • Posts: 52
Re: Maniplate grenadeamount and ammo?
« Reply #11 on: November 20, 2007, 02:37:36 pm »
I didn't want to use it, with the /loadwep, just know, i think the Idea with the timer is good. Thanks to all!

Offline 1221995

  • Soldier
  • **
  • Posts: 206
Re: Maniplate grenadeamount and ammo?
« Reply #12 on: November 20, 2007, 03:59:05 pm »
Wait... Couldnt you just set the nade frequency to zero (doesnt spawn), make the max like... 500 (only u cant get nades with the spawn thing, and none else can).

Offline TheToast

  • Major
  • *
  • Posts: 52
Re: Maniplate grenadeamount and ammo?
« Reply #13 on: November 20, 2007, 05:04:49 pm »
But in the beginning you always get grenades, the half of the limit. (exceot the limit is 1 or 0 )