Message-ID: <34763607.E7D7A181@compuserve.com>
Date: Sat, 22 Nov 1997 01:31:54 +0000
From: Jonathan del Strother <JdelStrother@compuserve.com>
X-Mailer: Mozilla 4.01 [en] (Win95; I)
MIME-Version: 1.0
Subject: randomly replacing weapons
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: rec.games.computer.quake.editing
Path: clanworld.com!news.webspan.net!newsfeeds.sol.net!ix.netcom.com!compuserve.com!arl-news-svc-8.compuserve.com!news-nih2naab.compuserve.com
Lines: 31
Xref: clanworld.com rec.games.computer.quake.editing:10437

Hi
i've made some qc code which includes an extra weapon - basically a
souped up shotgun - a rifle
if i make a map with a weapon_rifle entity in it, it works fine.
however, i would like to have it replace a standard weapon (like the
super nailgun) say, half of the time
so, if i to the startitem function for the super nailgun, and add at the
start
       if (random() => 0.5)
               {
                    weapon_rifle();
                }
        else
             REST OF THE S NAILGUN FUNCTION

so, i load a map with the supernailgun, & see the rifle mdl in place of
the supernailgun
woohoo......
i pick it up & "you picked up a rifle" appears at the top of the screen
woohoo....doh....    i now have a supernailgun, along with all the ammo
etc that comes with it

How can i get quake to replace the supernailgun randomly??
looking thru some patches, i noticed that despite having jetpacks
replacing armor etc, nobody had something replacing guns..........is it
really impossible?
any ideas??
Thanks
Jonathan del Strother


