This commit is contained in:
LightCat 2018-08-02 12:38:38 +02:00
parent 2794e2151a
commit 8a1df6378d
4 changed files with 31 additions and 6 deletions

View File

@ -5,5 +5,6 @@
<Include path="nullifiedcat/visuals/glow.xml"/> <Include path="nullifiedcat/visuals/glow.xml"/>
<Include path="nullifiedcat/visuals/chams.xml"/> <Include path="nullifiedcat/visuals/chams.xml"/>
<Include path="nullifiedcat/visuals/radar.xml"/> <Include path="nullifiedcat/visuals/radar.xml"/>
<Include path="nullifiedcat/visuals/misc.xml"/>
</TabContainer> </TabContainer>
</Tab> </Tab>

View File

@ -0,0 +1,23 @@
<Tab name="Misc Visuals" padding="4 4 4 4">
<List width="150">
<AutoVariable width="fill" target="visual.clean-screenshots" label="Clean Screenshots"/>
<AutoVariable width="fill" target="visual.disable" label="Disable Visuals"/>
<AutoVariable width="fill" target="visual.fov" label="FOV"/>
<AutoVariable width="fill" target="visual.fov-zoomed" label="FOV zoomed"/>
<AutoVariable width="fill" target="visual.freecam-button" label="Freecam button"/>
<AutoVariable width="fill" target="visual.medal-flip" label="Guranteed Medal flip"/>
<AutoVariable width="fill" target="visual.night-mode" label="Nightmode" min="0" max="100"/>
<AutoVariable width="fill" target="visual.open-gui-button" label="GUI button"/>
<LabeledObject width="fill" label="Software cursor mode">
<Select target="visual.software-cursor-mode">
<Option name="Keep" value="0"/>
<Option name="Always" value="1"/>
<Option name="Never" value="2"/>
<Option name="Menu on" value="3"/>
</Select>
</LabeledObject>
<AutoVariable width="fill" target="visual.sv-pure-bypass" label="SV Pure bypass"/>
<AutoVariable width="fill" target="visual.thirdperson.enable" label="Thirdperson"/>
<AutoVariable width="fill" target="visual.thirdperson.real-angles" label="Show Angles in thirdperson"/>
</List>
</Tab>

View File

@ -115,7 +115,7 @@ bool force_crit(IClientEntity *weapon)
// number); // number);
lastweapon = weapon->GetModel(); lastweapon = weapon->GetModel();
lastnumber = number; lastnumber = number;
if (crit_experimental) if (crit_experimental && GetWeaponMode() != weapon_melee)
{ {
if (!crit_legiter) if (!crit_legiter)
{ {

View File

@ -110,11 +110,12 @@ void Event(KeyValues *event)
{ {
CachedEntity *victim = ENTITY(vid); CachedEntity *victim = ENTITY(vid);
CachedEntity *attacker = ENTITY(eid); CachedEntity *attacker = ENTITY(eid);
if (victim->m_vecOrigin().DistTo(attacker->m_vecOrigin()) > 250) if (CE_GOOD(victim) && CE_GOOD(attacker))
{ if (victim->m_vecOrigin().DistTo(attacker->m_vecOrigin()) > 250)
data_table[eid - 1].check_timer = 1; {
data_table[eid - 1].last_weapon = event->GetInt("weaponid"); data_table[eid - 1].check_timer = 1;
} data_table[eid - 1].last_weapon = event->GetInt("weaponid");
}
} }
} }
} }