Added pomson to prog pred
This commit is contained in:
parent
07c6c936f7
commit
009b0e5763
@ -482,7 +482,8 @@ weaponmode GetWeaponMode() {
|
||||
weapon->m_iClassID == CL_CLASS(CTFFlareGun_Revenge) ||
|
||||
weapon->m_iClassID == CL_CLASS(CTFSyringeGun) ||
|
||||
weapon->m_iClassID == CL_CLASS(CTFCrossbow) ||
|
||||
weapon->m_iClassID == CL_CLASS(CTFShotgunBuildingRescue)) {
|
||||
weapon->m_iClassID == CL_CLASS(CTFShotgunBuildingRescue) ||
|
||||
weapon->m_iClassID == CL_CLASS(CTFDRGPomson)) {
|
||||
return weaponmode::weapon_projectile;
|
||||
} else if (weapon->m_iClassID == CL_CLASS(CTFJar) ||
|
||||
weapon->m_iClassID == CL_CLASS(CTFJarMilk)) {
|
||||
@ -503,6 +504,7 @@ bool LineIntersectsBox(Vector& bmin, Vector& bmax, Vector& lmin, Vector& lmax) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// TODO add bison and grapple hook
|
||||
// TODO FIX this function
|
||||
bool GetProjectileData(CachedEntity* weapon, float& speed, float& gravity) {
|
||||
float rspeed, rgrav;
|
||||
@ -545,6 +547,8 @@ bool GetProjectileData(CachedEntity* weapon, float& speed, float& gravity) {
|
||||
} else if (weapon->m_iClassID == CL_CLASS(CTFShotgunBuildingRescue)) {
|
||||
rgrav = 0.2f;
|
||||
rspeed = 2400.0f;
|
||||
} else if (weapon->m_iClassID == CL_CLASS(CTFDRGPomson)) {
|
||||
rspeed = 1200.0f;
|
||||
}
|
||||
speed = rspeed;
|
||||
gravity = rgrav;
|
||||
@ -752,8 +756,10 @@ bool IsEntityVisiblePenetration(CachedEntity* entity, int hb) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Used for getting class names
|
||||
CatCommand print_classnames("debug_print_classnames", "Lists classnames currently available in console", []() {
|
||||
|
||||
// Create a tmp ent for the loop
|
||||
CachedEntity* ent;
|
||||
|
||||
// Go through all the entities
|
||||
|
Reference in New Issue
Block a user