View Full Version : Turning off weapon mode command
Aknott
01-05-2003, 06:24 AM
Can someone tell me the command that turn off the weapon mode, like in the Max Payne House, at the very beggining?
Thanks for help.
RealNitro
01-05-2003, 07:33 AM
Maybe something like this:
player->c_removeallweapons(empty)
I'm not sure it'll work on the player, but it should work for the enemies.
tommulder
01-05-2003, 08:37 AM
okay thats pretty easy, make an FSM and put in
player->C_RemoveAllWeapons(empty);
this removes all weapons apart from the empty weapon, which is invisible.
then in the FSM of all enemies that you want to have no weapons, this code only applies for the player.
this->C_RemoveAllWeapons(empty);
same thing but code only applies for enemies.
there ya go images/icons/tongue.gif graemlins/tinyted.gif
Aknott
01-05-2003, 09:13 AM
Thanks guys.
May I ask another question. Can the health and bullettime bars be hidden?
Bruce Hamilton
01-05-2003, 09:47 AM
Originally posted by Aknott:
Can the health and bullettime bars be hidden?<font size="2" face="Verdana, Arial">Since they can be changed, they can probably be removed...
But why would you want to?
tommulder
01-05-2003, 10:54 AM
yes the health and bullet time can be removed.
look thru the files and find the 8 images corresponding to health and bullet time bar;
data/hud/bitmaps/
change:
health_icon_background_alpha.pcx
health_icon_foreground_alpha.pcx
Hourglass_Background_Alpha.pcx
Hourglass_foreground_Alpha.pcx
change these all to solid black bitmaps... there ya go!
if you look into the .txt and .h files tho, you could make a file called
Hid_Hud_Alpha.pcx (or .jpg)
and then change the references in the file hud.txt so that the alphas i said change before now all read data/hud/bitmaps/Hid_Hud_Alpha.pcx (or jpg depending on the format used)
there ya go!!! images/icons/tongue.gif abit or credit wouldnt go amiss too images/icons/wink.gif hehe
graemlins/ted.jpg
Maddieman
01-05-2003, 01:01 PM
Originally posted by tommulder:
hehe yep wosnt the shortest or easiest to understand answer was it? images/icons/tongue.gif graemlins/tinyted.gif <font size="2" face="Verdana, Arial">Nope:
maxpayne_hudmode->mphm_enablehud(false);
images/icons/tongue.gif
sir_plague
01-05-2003, 01:19 PM
Originally posted by Maddieman:
</font><blockquote><font size="1" face="Verdana, Arial">quote:</font><hr /><font size="2" face="Verdana, Arial">Originally posted by tommulder:
hehe yep wosnt the shortest or easiest to understand answer was it? images/icons/tongue.gif graemlins/tinyted.gif <font size="2" face="Verdana, Arial">Nope:
maxpayne_hudmode->mphm_enablehud(false);
images/icons/tongue.gif </font><hr /></blockquote><font size="2" face="Verdana, Arial">MaxPayne_HUDMode->MPHM_ChangeHUDVisibility(0,0.0);
images/icons/tongue.gif
longer version than enablehud, but still -- it works.
Aknott
01-05-2003, 02:12 PM
lol
thanks thanks thanks
Aknott
01-06-2003, 12:19 AM
Thank you Tom, for this precise answer.
tommulder
01-06-2003, 12:32 AM
hehe yep wosnt the shortest or easiest to understand answer was it? images/icons/tongue.gif graemlins/tinyted.gif
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.