Global Communications > Development Media

VC's Laboratory 81111

<< < (3/5) > >>

VC:
Demo coded, submitted, and -X * -X equals -X² whenever I want it to.

Years after asking for it, we still don't have paired spread factors for first and later bullets.  So yeah; guns are going to be somewhat spammy until that is added.  Also, I needs some rof/c_rof functionality on Bishop and Shotguns.  It's not just for pistols, dammit.

Half of the scripts are written, I finish them tomorrow night.

killermonkey:
c_rof and rof is active on all weapons, even shotguns, wtf is a Bishop... but anyway, there is also a crude method of altering successive bullet's accuracy cones in effect as well from the OB code. Finalize your work and then it will be put into GES

VC:
I'll doublecheck rof/c_rof tomorrow.

Bishop is the Sniper Rifle; there was discussion about naming a gun after Nick, similar to Klobb, and since we radically changed the Sniper Rifle's design, there was a motion to christen it the Bishop Sniper Rifle.  I still use the term but everyone else probably has forgotten by now.

How crude? If it's less crude than the bullshit I've been suck with -- using the recoil figures to try to emulate added spread -- I probably won't mind much.

killermonkey:
Crude as in this:



--- Code: ---
// Check our penalty time decay
if ( ( ( pOwner->m_nButtons & IN_ATTACK ) == false ) && ( m_flSoonestPrimaryAttack < gpGlobals->curtime ) )
{
m_flAccuracyPenalty -= gpGlobals->frametime;
m_flAccuracyPenalty = clamp( m_flAccuracyPenalty, 0.0f, PISTOL_ACCURACY_MAXIMUM_PENALTY_TIME );
}

.
.
.

virtual const Vector& GetBulletSpread( void )
{
static Vector cone;

float ramp = RemapValClamped( m_flAccuracyPenalty,
0.0f,
PISTOL_ACCURACY_MAXIMUM_PENALTY_TIME,
0.0f,
1.0f );

// We lerp from very accurate to inaccurate over time
VectorLerp( VECTOR_CONE_1DEGREES, VECTOR_CONE_6DEGREES, ramp, cone );

return cone;
}

--- End code ---

VC:
I don't know any of the structures or functions associated with Source games; but I'm inferring it's a linear slider. You fire, the cone jumps to a max value and then shrinks down linearly over t seconds.

If so that's plenty.  I shouldn't even need access to that t in the script.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version