View Full Version : Sniper hud defines
tommulder
02-10-2003, 05:26 PM
yea i expect this has been asked numerous times in the past, but im looking for it...
i dont mean the extension to "sniper.txt" i mean like the place where the commands to show sniperhud, enable zooming etc, or is this hard coded?
HairlessWookie
02-11-2003, 12:08 AM
to enable zooming is in the weapon.txt file under fov multiplier. whatever fov multiplier u set it at is how far it zooms in. anything between 0 and 1 is zooming in, anything above 1, if it will let u choose something above 1, will give you the "whooh man i snorted way too much cat tranquilizer" look.
As far as reffering to the sniper HUD block in HUD.txt, I havent seen any scripting anywhere for it. I think u can only use 1 sniper hud, but i may be wrong. Globalconfig.txt has some values for camera placement and some other things.
tommulder
02-11-2003, 08:51 AM
hehe oopz graemlins/brickwall.gif i think put the question wrong... i have found out where to change all these values, hell i even got a non repeating sniper hud, but i need to find the commands, something like this:
</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">sniper_hud //defines for use key being pressed whilst using sniper rifle
[properties]
[define] this->P_StartEffect( yada, yada );
}[/code]</blockquote><font size="2" face="Verdana, Arial">or whatever...
tommulder
02-11-2003, 06:11 PM
is it impossible? graemlins/brickwall.gif i hope not!
and also,
can an FSM have an "if" query? like
</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">"if weapons=mp5,this->P_StartEffect(laser);"[/code]</blockquote><font size="2" face="Verdana, Arial">or something along those lines... and yes i am using it for something more original than a laser images/icons/wink.gif
tommulder
02-12-2003, 11:37 AM
... graemlins/brickwall.gif hello? helllloooo? please someone just tell me if im wasting my time :'(
Maddieman
02-12-2003, 01:16 PM
You can't send fsm messages in the sniper hud - wookie tried this a month or two ago.
You can't do if/then programming with the scripts either, since they're just paramaters - not a programming language.
You can simulate if/then in MaxEd with the fsm states. Check the ai tutorial; specifically the bit that explains how to make a death counter - that basically uses if/then logic.
tommulder
02-12-2003, 04:54 PM
fair enough. i know pretty much all th AI fsms in maxed though so i had tried it, and i am pretty sure that you cant put fsm states in code :S images/icons/grin.gif well thanks anyway maddie images/icons/smile.gif
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.