yeah but i want to make one 1.3 and 1.4
I know its possible to make scripts that work on both client versions. I want the script as a standalone so that it can be hosted somewhere and people can use it on whatever config they want with little editing. The one crow has only works on 1.4 and also requires serverside modification.
The ideal one would just wait for the sound to occur, and then draw the desired image file for x amount of time preferably an 8th of a second.
Here is a standalone script for 1.3 and 1.4 that switches to any sniper weapon while zoomed in.
bindCommand(keyboard0, make, "e", TO, "z0ddzoomsnipe::doSnipe();");
bindCommand(keyboard0, break, "e", TO, "z0ddzoomsnipe::unDoSnipe();");
$z0ddzoomsnipe::switchBackToWpn = 0;
$z0ddzoomsnipe::autoCrouch = 0;
$z0ddzoomsnipe::crouchWithoutRifle = 0;
$z0ddzoomsnipe::alwaysZoom = 1;
function psychozoomsnipe::switchback() {
if(getItemCount("Rocket Launcher")) {
use("Rocket Launcher");
}
else if(getItemCount("Disc Launcher")) {
use("Disc Launcher");
}
}
function z0ddzoomsnipe::doSnipe()
{
if(getItemCount("Particle Beam")) {
$z0ddzoomsnipe::ownsLR = 1;
if($z0ddzoomsnipe::autoCrouch)
postAction(2048, IDACTION_CROUCH, 1);
if($z0ddzoomsnipe::switchBackToWpn)
$z0ddzoomsnipe::prevWpn = z0ddzoomsnipe::getCurrentWpn();
use("Particle Beam");
postAction(2048, IDACTION_SNIPER_FOV, 1.000000);
}
else if(getItemCount("Vulcan")) {
$z0ddzoomsnipe::ownsLR = 1;
if($z0ddzoomsnipe::autoCrouch)
postAction(2048, IDACTION_CROUCH, 1);
if($z0ddzoomsnipe::switchBackToWpn)
$z0ddzoomsnipe::prevWpn = z0ddzoomsnipe::getCurrentWpn();
use("Vulcan");
postAction(2048, IDACTION_SNIPER_FOV, 1.000000);
}
else if(getItemCount("Railgun")) {
$z0ddzoomsnipe::ownsLR = 1;
if($z0ddzoomsnipe::autoCrouch)
postAction(2048, IDACTION_CROUCH, 1);
if($z0ddzoomsnipe::switchBackToWpn)
$z0ddzoomsnipe::prevWpn = z0ddzoomsnipe::getCurrentWpn();
use("Railgun");
postAction(2048, IDACTION_SNIPER_FOV, 1.000000);
}
else if(getItemCount("Laser Rifle")) {
$z0ddzoomsnipe::ownsLR = 1;
if($z0ddzoomsnipe::autoCrouch)
postAction(2048, IDACTION_CROUCH, 1);
if($z0ddzoomsnipe::switchBackToWpn)
$z0ddzoomsnipe::prevWpn = z0ddzoomsnipe::getCurrentWpn();
use("Laser Rifle");
postAction(2048, IDACTION_SNIPER_FOV, 1.000000);
}
else if(getItemCount("Chaingun")) {
$z0ddzoomsnipe::ownsLR = 1;
if($z0ddzoomsnipe::autoCrouch)
postAction(2048, IDACTION_CROUCH, 1);
if($z0ddzoomsnipe::switchBackToWpn)
$z0ddzoomsnipe::prevWpn = z0ddzoomsnipe::getCurrentWpn();
use("Chaingun");
postAction(2048, IDACTION_SNIPER_FOV, 1.000000);
}
else if(getItemCount("Minigun")) {
$z0ddzoomsnipe::ownsLR = 1;
if($z0ddzoomsnipe::autoCrouch)
postAction(2048, IDACTION_CROUCH, 1);
if($z0ddzoomsnipe::switchBackToWpn)
$z0ddzoomsnipe::prevWpn = z0ddzoomsnipe::getCurrentWpn();
use("Minigun");
postAction(2048, IDACTION_SNIPER_FOV, 1.000000);
}
else if(getItemCount("Sniper Rifle")) {
$z0ddzoomsnipe::ownsLR = 1;
if($z0ddzoomsnipe::autoCrouch)
postAction(2048, IDACTION_CROUCH, 1);
if($z0ddzoomsnipe::switchBackToWpn)
$z0ddzoomsnipe::prevWpn = z0ddzoomsnipe::getCurrentWpn();
use("Sniper Rifle");
postAction(2048, IDACTION_SNIPER_FOV, 1.000000);
}
else {
if($z0ddzoomsnipe::alwaysZoom)
postAction(2048, IDACTION_SNIPER_FOV, 1.000000);
if($z0ddzoomsnipe::crouchWithoutRifle)
postAction(2048, IDACTION_CROUCH, 1);
$z0ddzoomsnipe::ownsLR = 0;
}
}
function z0ddzoomsnipe::unDoSnipe()
{
postAction(2048, IDACTION_SNIPER_FOV, 0.000000);
postAction(2048, IDACTION_STAND, 1);
if($z0ddzoomsnipe::ownsLR) {
if($z0ddzoomsnipe::switchBackToWpn)
psychozoomsnipe::switchback();
}
}