MG 42 fix
This fix was designed to stop players who try to use the glitch where you hold a greande crouch and start using a turret gun. This would usually allow you to be hidden and have full visibility. With the fix if a player tried to use the MG42 they will find they use normally then when they stop they switch back to grenade.
The screen shots in the pictures here show someone who is using this glitch on a server without the fix. As with this fix it can not be performed I can not show you any screens shots.
Implement
To implement the fix you must add a line to two grenade stats. The line checks if they are using the turret and exits the grenade state playing the correct animations.
To state CHARGE_ATTACK_GRENADE_SECONDARY under the “states” section add the line “TURRET_START : IS_USING_TURRET”
The state should now look something like this:
|
state CHARGE_ATTACK_GRENADE_SECONDARY { movetype legs
entrycommands { viewmodelanim charge }
action { steilhandgranate_crouch_charge_secondary : IS_WEAPON_ACTIVE "mainhand" "Stielhandgranate" POSITION_TYPE "crouching" steilhandgranate_stand_charge_secondary : IS_WEAPON_ACTIVE "mainhand" "Stielhandgranate"
grenade_crouch_charge_secondary : POSITION_TYPE "crouching" grenade_stand_charge_secondary : default }
states { STAND : !HAS_WEAPON STAND : IS_WEAPON_ACTIVE "Error" "grenade" TURRET_START : IS_USING_TURRET RELEASE_KILLED_FRAG : KILLED RELEASE_ATTACK_GRENADE_SECONDARY : !ATTACK_SECONDARY MIN_CHARGE_TIME_MET "mainhand"
} } |
Mine has the grenade drop fix mixed in with it. You must also do the same for the state CHARGE_ATTACK_GRENADE.
The state should then look something like this:
|
state CHARGE_ATTACK_GRENADE { movetype legs
entrycommands { viewmodelanim charge }
action { steilhandgranate_crouch_charge : IS_WEAPON_ACTIVE "mainhand" "Stielhandgranate" POSITION_TYPE "crouching" steilhandgranate_stand_charge : IS_WEAPON_ACTIVE "mainhand" "Stielhandgranate"
grenade_crouch_charge : POSITION_TYPE "crouching" grenade_stand_charge : default }
states { STAND : !HAS_WEAPON STAND : IS_WEAPON_ACTIVE "Error" "grenade" TURRET_START : IS_USING_TURRET RELEASE_KILLED_FRAG : KILLED RELEASE_ATTACK_GRENADE : !ATTACK_PRIMARY MIN_CHARGE_TIME_MET "mainhand"
} } |