Page 1 of 1

Start game with no guns at all?

Posted: Sat Sep 20, 2008 4:57 am
by 9skulls
How can I implement that idea to the game? Making the game start so that player doesnt have any guns at all, only fists. The gun would be found only later on in the game.

I know that this needs some scripting, just dunno which commands to use...

Help appreciated!

Re: Start game with no guns at all?

Posted: Sat Sep 20, 2008 4:59 am
by Enjay
An easy and reliable way that would work for any map would be to use DECORATE to make a custom player class that only gets the fists as a start item.

Re: Start game with no guns at all?

Posted: Sat Sep 20, 2008 5:00 am
by jallamann
[wiki]ClearInventory[/wiki]

Re: Start game with no guns at all?

Posted: Sat Sep 20, 2008 8:35 am
by FuzzballFox

Code: Select all

#include "zcommon.acs"

script 999 OPEN 
{
 ClearInventory();
 GiveInventory("Fist", 1);
}
This should work, just stick in in your ACS thingy and away you go! :D

Re: Start game with no guns at all?

Posted: Mon Sep 22, 2008 12:12 am
by 9skulls
Yeah, those inventory -tags did the trick. Thanks for the tip!

Re: Start game with no guns at all?

Posted: Mon Sep 22, 2008 9:19 am
by HotWax
And yet Enjay's method is the most correct, and he gets completely ignored. :P

Re: Start game with no guns at all?

Posted: Mon Sep 22, 2008 9:30 am
by Cutmanmike
I dunno I would have used ClearInventory if I was just making a map.

Re: Start game with no guns at all?

Posted: Mon Sep 22, 2008 11:06 am
by Enjay
I probably would too. However, there was something in the phrasing of the original question that made me think he might want something a bit more robust that would, I dunno, allow warping to different maps or whatever and still guarantee the "base condition" of the player as a no-pistol one.