Jump to content
Sign in to follow this  
Bullz_eye_on_my_back

Small question

Recommended Posts

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?

Share this post


Link to post
Share on other sites

I've heard that a lot of the binocular stuff is hard-coded into the game.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 : Default

{

//--

scopeWeapon = public;

scopeMagazine = protected;

model="dalekohled_proxy";

modelOptics="optika_dalekohled";

weaponType = WeaponSlotBinocular;

magazineType = WeaponNoSlot;

ammo=; // no ammo

displayName = $STR_DN_BINOCULAR;

reloadTime=0.0;

sound[]={,0,1};

canLock=LockNo;

optics = true;

forceOptics = true;

primary = false;

opticsZoomMin=0.085;

opticsZoomMax=0.085;

magazines[] = {};

};

<span id='postcolor'>

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×