PDA

View Full Version : Small question



Bullz_eye_on_my_back
Feb 4 2003, 18:55
For the cypher project that I'm working on, I thought I could posibly make not a "binocular", but a new addon that the player will be able to pick up and will be in their weapons slots (well where the binocular slot is)

By using the new "binocular" they will appear as lifting it up and looking at it... which will trigger my scripts for viewing the cypher camera ... then possibly set up a new animation of them looking down at it instead....

I was going to do this, for if it is going to be used in multiplayer... that if someone got killed or wanted to switch control all they have to do is trade the equipment over. Or so that it could be placed in an ammo crate ....

I was wondering if anyone knew how the binoculars are configured? or I guess the night vision goggles would work too?

Bullz_eye_on_my_back
Feb 9 2003, 05:17
Hmmm... I've asked other people but seems no one knows....

maybe BIS could enlighten us on how to config a binocular ?

::crossing fingers:: Please http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/biggrin.gif http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/biggrin.gif

edc
Feb 9 2003, 05:37
I've heard that a lot of the binocular stuff is hard-coded into the game.

Bullz_eye_on_my_back
Feb 9 2003, 06:19
shucks..... all i really want is how to configure an item so that it will show up in the binocular/night vision slots in the breifing and can be animated to show the soldier looking at it

UnYx
Feb 11 2003, 06:20
extract from cfgWeapons.hpp from BIS commented config
isn't it what you're looking for ?
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class Binocular &#58; Default
{
//--
scopeWeapon = public;
scopeMagazine = protected;

model=&#34;dalekohled_proxy&#34;;
modelOptics=&#34;optika_dalekohled&#34;;

weaponType = WeaponSlotBinocular;
magazineType = WeaponNoSlot;
ammo=; // no ammo
displayName = &#036;STR_DN_BINOCULAR;
reloadTime=0.0;
sound&#91;&#93;={,0,1};
canLock=LockNo;

optics = true;
forceOptics = true;

primary = false;
opticsZoomMin=0.085;
opticsZoomMax=0.085;

magazines&#91;&#93; = {};
};
[/QUOTE]<span id='postcolor'>

Bullz_eye_on_my_back
Feb 11 2003, 19:59
very cool... i will have to see if i can get it to work&#33; Thanks Unyx