AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Does anyone know how to get the nightvision googles?!?!? (https://forums.alliedmods.net/showthread.php?t=194)

The19 03-11-2004 20:39

Does anyone know how to get the nightvision googles?!?!?
 
I want to know how you give a play the nightvision googles, ive read its supposed to be "weapon_nightvision" but that doesnt work, it doesnt seem to be a weapon, otherwise i would have found it by now.
Also i want to know how I can find out when someone has bought the NVGs and when they are activated or deaktivated

can someone help me with this?

Ent

MagicShot 03-11-2004 23:06

Re: Does anyone know how to get the nightvision googles?!?!?
 
Quote:

Originally Posted by The19
I want to know how you give a play the nightvision googles, ive read its supposed to be "weapon_nightvision" but that doesnt work, it doesnt seem to be a weapon, otherwise i would have found it by now.
Also i want to know how I can find out when someone has bought the NVGs and when they are activated or deaktivated

can someone help me with this?

Ent

I'll have to check on that one but i think it is the same as it was in the older versions of amx...

Responce this weekend.. :lol:

BAILOPAN 03-12-2004 00:13

Like this. This was originally demonstrated to me by AssKicr, and it seems to be directed towards making your own nvg implementation.

You may want to emit_sound emit_sound "items/nvg_on.wav" or "items/nvg_off.wav" and keep track of the states being used. You could do this by creating a "pvGoggles[32]" and "pvHasGoggles[32]" variable to store information about whether players can use it or not.

Code:
message_begin(MSG_ONE, get_user_msgid("NVGToggle"), {0,0,0}, id) write_byte(state)   //1=on 0=off message_end()

The19 03-12-2004 13:11

thanks *cuddle*


and ive found the msg for nightvision :)

#Hint_use_nightvision


Ent, now only the shield for Steam is left, then ive got all weapons and items :)

SniperBeamer 03-12-2004 14:00

shield is: weapon_shield


All times are GMT -4. The time now is 03:21.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.