if ( m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] || m_pPlayer->m_rgAmmo[m_iSecondaryAmmoType] <= 100)Means: IF primary ammo is something else than 0 OR secondary ammo <= 100.
void CTwohand::Reload( void )EDIT : Don't call me a lord just because I posted a quote from Linux's father, the idea behind this quote (I think you've found out already) is that when you have an issue with your code, the code itself is more appropriate to help rather than an explanation, it's like making a presentation with PowerPoint/Impress full of text with no images at all ^^
{
// Don't reload if primary OR secondary ammo is equal or above 100
if ( m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] >= 100 || m_pPlayer->m_rgAmmo[m_iSecondaryAttack] >= 100 )
return;
// The code below is executed if you have less than 100 primary AND secondary ammo, no need to do another if/else
CBaseEntity *pEntity = NULL;
// The "start entity" should be the player, not something else
while ((pEntity = UTIL_FindEntityInSphere( m_pPlayer, m_pPlayer->pev->origin, 10000.0f ) != NULL)
{
if ( FClassnameIs( pEntity->pev, "monstermaker" ) )
pEntity->Use( m_pPlayer, m_pPlayer, USE_ON, 0.0f ); // You specified the entity itself as the "caller" which is wrong, the player should be the activator AND the caller.
}
}
{ TASK_STOP_MOVING, (float)0 },
{ TASK_PLAY_SEQUENCE_FACE_ENEMY, (float)ACT_EXCITED },
{ TASK_EAT, (float)0 }
};{
tlMyNPCShield,
ARRAYSIZE( tlMyNPCShield ),
0,
0,
"MyNPC Shield"
},
};switch ( m_MonsterState )
{
case MONSTERSTATE_COMBAT:
if ( m_hEnemy != NULL && pev->health <= (gSkillData.zombieHealth / 2.0f) && gpGlobals->time > m_flNextShieldTime )
return GetScheduleOfType( SCHED_COWER );
}
return CSquadMonster::GetSchedule();
}switch ( Type )
{
case SCHED_COWER:
return slMyNPCShield;
break;
}
return CSquadMonster::GetScheduleOfType( Type );
}switch ( pTask->iTask )
{
case TASK_EAT:
TaskComplete();
break;
default:
CSquadMonster::RunTask( pTask );
break;
}
}switch ( pTask->iTask )
{
case TASK_EAT:
m_flNextShieldTime = gpGlobals->time + 15.0f;
break;
default:
CSquadMonster::StartTask( pTask );
break;
}
}[/quote]{ TASK_STOP_MOVING, (float)0 },
{ TASK_PLAY_SEQUENCE_FACE_ENEMY, (float)ACT_EXCITED },
{ TASK_WAIT, (float)5.58f }
};{
tlMyNPCShield,
ARRAYSIZE( tlMyNPCShield ),
0,
0,
"MyNPC Shield"
},
};[/quote]return &slMyNPCShield[ 0 ];
Thank you in advance for your helpDon't worry, I don't expect Sept. 5th to be a hard deadline. It's something to shoot for but I expect we'll need more time to coordinate everything with the hub map. Keep working!
Can a map be random/phantasy made? (As in a fort-temple in the middle of the ocean)I think your imagination and SoHL 1.8 are the only limits.
Anyone else playing Overwatch? Archie and Scoots really suck at it and I wanna play! unhappy -I play Overwatch sometimes with friends and I suck too ^^