Page 1 of 1

Knife and pistol script

Posted: Tue Mar 20, 2007 8:18 pm
by zany_001
Hey, i dont know rf scripting yet, but could you have a script that letas you hold a knife and a pistol at the same time, and use right mouse button to fire one and left mouse for other?perhaps:

Code: Select all

{
          if activeWeapon==pistol  
         and pickedUpWeapon==knife
         then keepPistolActive
         else if activeWeapon==knife
         and pickedUpWeapon==pistol
         then keepKnifeActive
         }
and i could dig up some old code to make the weapon firing work independantly
(soz for bad coding :oops: :oops: )

Posted: Tue Mar 20, 2007 11:16 pm
by darksmaster923
i remeber juutis had a script for that
the command for what weapon is if(self.player_weapon)
the number is the entry in the ini file

Posted: Wed Mar 21, 2007 2:21 pm
by Juutis
Yep, there's a script like that in my demo. But all the scripts lack comments... so it may be a bit tricky to understand.
I have, however, started to comment them and I will post all the scripts once I get them all done.

Posted: Wed Mar 21, 2007 9:16 pm
by zany_001
Sweet im learning the scripting language now