add some progs
This commit is contained in:
parent
31ed19cb47
commit
ee8428d8b5
12 changed files with 23 additions and 7 deletions
BIN
.dir.tiff
BIN
.dir.tiff
Binary file not shown.
|
@ -260,6 +260,8 @@
|
|||
|
||||
[multisource](@ref multisource)
|
||||
|
||||
[npc_furniture](@ref npc_furniture)
|
||||
|
||||
[path_corner](@ref path_corner)
|
||||
|
||||
[path_track](@ref path_track)
|
||||
|
|
BIN
base/csprogs.dat
Normal file
BIN
base/csprogs.dat
Normal file
Binary file not shown.
BIN
base/hud.dat
Normal file
BIN
base/hud.dat
Normal file
Binary file not shown.
BIN
base/maps/demo.dat
Normal file
BIN
base/maps/demo.dat
Normal file
Binary file not shown.
BIN
base/menu.dat
Normal file
BIN
base/menu.dat
Normal file
Binary file not shown.
BIN
base/progs.dat
Normal file
BIN
base/progs.dat
Normal file
Binary file not shown.
BIN
base/progs/deathmatch.dat
Normal file
BIN
base/progs/deathmatch.dat
Normal file
Binary file not shown.
BIN
base/progs/singleplayer.dat
Normal file
BIN
base/progs/singleplayer.dat
Normal file
Binary file not shown.
|
@ -218,7 +218,7 @@ View_DrawViewModel(void)
|
|||
Event_Callback(m_eViewModel.frame1time, fBaseTime2);
|
||||
|
||||
entity oldSelf = self;
|
||||
self = pl.m_activeWeapon;
|
||||
self = m_eViewModel;
|
||||
processmodelevents(m_eViewModel.modelindex, m_eViewModel.frame, fBaseTime,
|
||||
m_eViewModel.frame1time, View_HandleAnimEvent);
|
||||
self = oldSelf;
|
||||
|
|
|
@ -993,22 +993,22 @@ ncRenderableEntity::HandleAnimEvent(float flTimeStamp, int iCode, string strData
|
|||
/* GS events */
|
||||
case 5001: /* muzzle flash on attachment 0 */
|
||||
#ifdef CLIENT
|
||||
EV_MuzzleFlash_Create(this, m_iNumBones, m_flMuzzleScale, m_iMuzzleModel);
|
||||
EV_MuzzleFlash_CreateAdditive(this, m_iNumBones, m_flMuzzleScale, m_iMuzzleModel);
|
||||
#endif
|
||||
break;
|
||||
case 5011: /* muzzle flash on attachment 1 */
|
||||
#ifdef CLIENT
|
||||
EV_MuzzleFlash_Create(this, m_iNumBones + 1, m_flMuzzleScale, m_iMuzzleModel);
|
||||
EV_MuzzleFlash_CreateAdditive(this, m_iNumBones + 1, m_flMuzzleScale, m_iMuzzleModel);
|
||||
#endif
|
||||
break;
|
||||
case 5021: /* muzzle flash on attachment 2 */
|
||||
#ifdef CLIENT
|
||||
EV_MuzzleFlash_Create(this, m_iNumBones + 2, m_flMuzzleScale, m_iMuzzleModel);
|
||||
EV_MuzzleFlash_CreateAdditive(this, m_iNumBones + 2, m_flMuzzleScale, m_iMuzzleModel);
|
||||
#endif
|
||||
break;
|
||||
case 5031: /* muzzle flash on attachment 3 */
|
||||
#ifdef CLIENT
|
||||
EV_MuzzleFlash_Create(this, m_iNumBones + 3, m_flMuzzleScale, m_iMuzzleModel);
|
||||
EV_MuzzleFlash_CreateAdditive(this, m_iNumBones + 3, m_flMuzzleScale, m_iMuzzleModel);
|
||||
#endif
|
||||
break;
|
||||
case 1003: /* trigger SSQC entity with specific targetname */
|
||||
|
@ -1278,6 +1278,9 @@ ncRenderableEntity::SpawnKey(string strKey, string strValue)
|
|||
case "renderfx":
|
||||
m_iRenderFX = ReadFloat(strValue);
|
||||
break;
|
||||
case "model_flash":
|
||||
m_iMuzzleModel = (int)getmodelindex(strValue);
|
||||
break;
|
||||
default:
|
||||
super::SpawnKey(strKey, strValue);
|
||||
break;
|
||||
|
|
|
@ -515,7 +515,6 @@ ncWeapon::HandleAnimEvent(float timeStamp, int eventCode, string dataString)
|
|||
muzzlePos += anglesToUp(pSeat->m_eViewModel.angles) * muzzOfs[2];
|
||||
}
|
||||
|
||||
|
||||
muzzlePos += anglesToForward(pSeat->m_eViewModel.angles) * muzzOffset[0];
|
||||
muzzlePos += anglesToRight(pSeat->m_eViewModel.angles) * muzzOffset[1];
|
||||
muzzlePos += anglesToUp(pSeat->m_eViewModel.angles) * muzzOffset[2];
|
||||
|
@ -870,11 +869,13 @@ ncWeapon::UpdateViewmodel(void)
|
|||
string viewModelPath2 = GetSubDefString(m_primaryFireInfo, "model_view2");
|
||||
string viewModelPath3 = GetSubDefString(m_primaryFireInfo, "model_view3");
|
||||
string viewModelPath4 = GetSubDefString(m_primaryFireInfo, "model_view4");
|
||||
string modelFlash = GetDefString("model_flash");
|
||||
|
||||
viewModel.modelindex = m_viewModel;
|
||||
viewModel.modelindex2 = getmodelindex(viewModelPath2);
|
||||
viewModel.modelindex3 = getmodelindex(viewModelPath3);
|
||||
viewModel.modelindex4 = getmodelindex(viewModelPath4);
|
||||
viewModel2.m_iMuzzleModel = viewModel.m_iMuzzleModel = (int)getmodelindex(modelFlash);
|
||||
|
||||
if (viewModel) {
|
||||
viewModel._UpdateBoneCount();
|
||||
|
@ -1048,6 +1049,14 @@ void
|
|||
ncWeapon::ReleasedWeaponAttack(string fireInfo)
|
||||
{
|
||||
ncPlayer ourOwner = (ncPlayer)GetOwner();
|
||||
|
||||
/* don't apply to projectiles without fuses */
|
||||
if (m_flPrimedFuse <= 0) {
|
||||
#ifdef SERVER
|
||||
ourOwner.nadeCookingTime = time;
|
||||
#endif
|
||||
}
|
||||
|
||||
ourOwner.AttackByDef(fireInfo, true);
|
||||
|
||||
/* knockback */
|
||||
|
@ -1133,7 +1142,9 @@ ncWeapon::Attack(string fireInfo)
|
|||
SetWeaponFrame(shotAnim);
|
||||
_SetWeaponState(WEAPONSTATE_CHARGING);
|
||||
return;
|
||||
} if (UseAmmo(fireInfo) == false) {
|
||||
}
|
||||
|
||||
if (UseAmmo(fireInfo) == false) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue