//=======================================
// EDITABLE SECTION
//=======================================
// Fire Button
bindCommand(mouse0, make, button0, TO, "start();");
bindCommand(mouse0, break, button0, TO, "end();");
// Sensitivity when chaining (experiment with)
$DuTcH::cgsense = 0.001150;
// Leave :)
$DuTcH::sense = Client::getMouseSensitivity("playMap.sae");
// Set to false if u have Flip mouse vertical enabled
$DuTcH::flip = True;
// Toggle For Zoom, True/False
$DuTcH::zoom = True;
// This should be set to your normal FOV (90 is default)
$DuTcH::normfov = "115";
// This is the FOV you want when using the CG
$DuTcH::zoomfov = "98";
// Set this to the value from above
$pref::PlayerFov = $DuTcH::normfov;
//=======================================
// DONT GO FURTHER
//=======================================
function DuTcH::shoot()
{
if($DuTcH::zoom){
$pref::PlayerFov = $DuTcH::zoomfov;
}
if($DuTcH::flip){
EditActionMap("playMap.sae");
bindAction(mouse0, xaxis0, TO, IDACTION_YAW, Flip, Scale, $DuTcH::cgsense);
bindAction(mouse0, yaxis0, TO, IDACTION_PITCH, Flip, Scale, $DuTcH::cgsense);
}
else
{
if($DuTcH::zoom){
$pref::PlayerFov = $DuTcH::zoomfov;
}
EditActionMap("playMap.sae");
bindAction(mouse0, xaxis0, TO, IDACTION_YAW, Flip, Scale, $DuTcH::cgsense);
bindAction(mouse0, yaxis0, TO, IDACTION_PITCH, Scale, $DuTcH::cgsense);
}
}
function DuTcH::stopshoot()
{
if($DuTcH::flip){
$pref::PlayerFov = $DuTcH::normfov;
EditActionMap("playMap.sae");
bindAction(mouse0, xaxis0, TO, IDACTION_YAW, Flip, Scale, $DuTcH::sense);
bindAction(mouse0, yaxis0, TO, IDACTION_PITCH, Flip, Scale, $DuTcH::sense);
}
else
{
$pref::PlayerFov = $DuTcH::normfov;
EditActionMap("playMap.sae");
bindAction(mouse0, xaxis0, TO, IDACTION_YAW, Flip, Scale, $DuTcH::sense);
bindAction(mouse0, yaxis0, TO, IDACTION_PITCH, Scale, $DuTcH::sense);
}
}
function start()
{
if (getMountedItem(0) == 13){
postAction(2048, IDACTION_FIRE1, 1);
DuTcH::shoot();
}
else {
postAction(2048, IDACTION_FIRE1, 1);
}
}
function end()
{
postAction(2048, IDACTION_BREAK1, -0);
DuTcH::stopshoot();
}