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

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

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

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Uhm HAS_WEAPON or NEW_WEAPON should do it I think... but what's that

MOD_ZOOMOFF : default

line doing there? :?
Image
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post 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.
Post Reply