Page 1 of 1

.st mike_torso q. Giving snipers zoom, Detect change weap.

Posted: Sat Nov 20, 2004 3:35 pm
by Elgan
yo!

im making a mod where u caqn zoom zom with snipers rifles. to detect only right click i used the state check_secondry_fire

Code: Select all

state MOD_ZOOM
{
	entrycommands
	{
		exec sniper/sniper.scr
	}

	states
	{
		STAND							: KILLED
//		PAIN							: PAIN

//		STAND							: !ATTACK_PRIMARY ANIMDONE_TORSO 
		STAND							: ANIMDONE_TORSO 
		CHECK_PRIMARY_ATTACK_FULLAUTO			: +ATTACK_PRIMARY IS_WEAPON_READY_TO_FIRE "mainhand"
		MOD_ZOOMOFF						: default
		MOD_ZOOMOFF						: PUTAWAYMAIN
		MOD_ZOOMOFF						: IS_USING_VEHICLE
		MOD_ZOOMOFF						: IS_USING_TURRET
		MOD_ZOOMOFF						: +HAS_WEAPON
		MOD_ZOOMOFF						: -HAS_WEAPON
		MOD_ZOOMOFF						: NEW_WEAPON 	}
}

state MOD_ZOOMOFF
{
	entrycommands
	{
		fov 0
		safezoom 1
iprint "zooomoff"
	}

	states
	{
		STAND							: default

	}
}
all works but now i need to detect when they change weapon ?

also tried +NEW_WEAPON and -NEW_WEAPON.

jv?:D

Posted: Sat Nov 20, 2004 3:42 pm
by jv_map
Uhm HAS_WEAPON or NEW_WEAPON should do it I think... but what's that

MOD_ZOOMOFF : default

line doing there? :?

Posted: Sat Nov 20, 2004 4:44 pm
by Elgan
jv_map wrote:Uhm HAS_WEAPON or NEW_WEAPON should do it I think... but what's that

MOD_ZOOMOFF : default

line doing there? :?
they dont work:(

that default line was just more testing..it dont work either:P.