Author Topic: Weapon spawn  (Read 990 times)

0 Members and 1 Guest are viewing this topic.

Offline Martino

  • Major(1)
  • Posts: 18
Weapon spawn
« on: June 14, 2007, 12:18:25 pm »
I want to make a server. In my server I want to make that soldiers cannot reload(Reloading time:-1. But I want to make that if you kill somebody something will give you ammo(I tried spawnobject and forceweapon but sawnobject spawns empty weapon and forceweweapon makes your secondary weapon empty). If anybody can help write here please. :-[

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Re: Weapon spawn
« Reply #1 on: June 14, 2007, 06:40:40 pm »
there should be another parameter for forceweapon that says how much ammo the weapon on the back shold have
Can't think of anything original to put here...

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Weapon spawn
« Reply #2 on: June 14, 2007, 07:31:33 pm »
Yeah, enesce, this should be changed...
And b4 u say it will kill scripts, do what you did for BanPlayer having a reason, adding a new function BanPlayerReason (which i never really tested, but i assumed it was there sense its in the changelog)
Except this would be something like... ForceWeaponAmmo or something weird like that. <3

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Re: Weapon spawn
« Reply #3 on: June 15, 2007, 01:27:35 am »
isn't there a way for enesce to add an optional parameter?  that way it will still use the same procedure name but it won't f*** up anything.
Can't think of anything original to put here...

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: Weapon spawn
« Reply #4 on: June 15, 2007, 02:51:51 am »
there is a complicated way which allows you to pseudo-force secondary ammo aswell, using a variable that safes the secondary ammo forced and forces it in OnWeaponChange. i didn't think it all through, but it should be possible.
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host