Forum

> > Stranded II > Mods > Zoom Camera modified.exe
Forums overviewStranded II overview Mods overviewLog in to reply

English Zoom Camera modified.exe

5 replies
To the start Previous 1 Next To the start

old Not Working

SlyCooperReloadCoded
User Off Offline

Quote
I installed the program correctly, but when I right-clicked, it only zoomed for a half-second! Is it supposed to be that way?

old Re: Zoom Camera modified.exe

Smurf
User Off Offline

Quote
The camera should stay zoomed until you move.

Try this, copy over your "items_weapons" shotgun.

### Shotgun
id=110
name=Shotgun
group=weapon
icon=gfx\shotgun.bmp
model=gfx\shotgun.b3d
scale=0.335
behaviour=gun
range=120
rate=800
mat=metal
weight=2500
info=this gun causes a lot of damage but it has only a very small range
damage=10
healthchange=0
script=start


on:attack2{zoom;}

     on:attack1 {
          if (gety("unit",1)<-15){
               skipevent;
               speech "negative";
          }else{
               if (playergotitem(29)>0) { play "shotgun.wav"; }
          }
     }
     on:impact {
          $tmp=impact_class();
          $tmp2=impact_id();
          //+100 Bonus Damage on Flesh
          if (compare_material($tmp,$tmp2,"flesh")==1){
               damage $tmp,$tmp2,100;
          //+100 Bonus Damage on Fruit
          } elseif (compare_material($tmp,$tmp2,"fruit")==1){
               damage $tmp,$tmp2,100;
          //+200 Bonus Damage on Glass
          } elseif (compare_material($tmp,$tmp2,"glass")==1){
               damage $tmp,$tmp2,200;
          }
          freevar $tmp;
          freevar $tmp2;
     }
     on:inhand {
          play "crack1.wav";
     }
     on:noammo {
          speech "negative";
          msg "No ammo!",3;
     }
script=end

old Re: Zoom Camera modified.exe

Assassin moder
User Off Offline

Quote
You can use this (warning it is for Multiplayer MOD and i didn't copy all script)


### sniper1
id=121
name=Silenced sniper
group=weapon
icon=gfx\sniper1.bmp
model=gfx\sniper.b3d
scale=0.335
behaviour=gun
range=30000
rate=2500
mat=metal
weight=2200
info=Very good and silence
damage=50
healthchange=0
script=start
     on:attack1 {
     if (playergotitem(125)>0) {
          local $sht,$sht1,$sht2;
          $sht++;
          $sht1=6-$sht;
          $sht2=(playergotitem(125)-$sht1);
          text 10,"$sht1|$sht2",0;
          if (gety("unit",1)<-15){
               skipevent;
               speech "negative";
          }elseif ($sht==7){
     $sht++;
     event "reload";
     skipevent;
     }else{
     if (playergotitem(125)>0) {      play "silenced.wav";
                         timer "self",15,1,"sniper";
               }
          }
     }
}     
     on:reload{
          if(getplayerweapon()==121){
               if($sht>0){
                    process "Reload",1600;
                    play "sniper_reload.wav",20;
                    $wid=sreload;
                    send $wid,"wid2";
                    freevar "$sht";
                    $sht1=6;
                    $sht2=(playergotitem(125)-$sht1);
                    text 10,"$sht1|$sht2",0;
               }
          }
     }
     on:sniper {
          $wid=501;
          send $wid,"wid2";
          $pitch=(getpitch("unit",1)-16);
          $yaw=getyaw("unit",1);
          setrot "unit",1,$pitch,$yaw,0;
}
     on:impact {
          $tmp=impact_class();
          $tmp2=impact_id();
          //+40 Bonus Damage on Flesh
          if (compare_material($tmp,$tmp2,"flesh")==1){
               damage $tmp,$tmp2,40;
          //+50 Bonus Damage on Fruit
          } elseif (compare_material($tmp,$tmp2,"fruit")==1){
               damage $tmp,$tmp2,50;
          //+200 Bonus Damage on Glass
          } elseif (compare_material($tmp,$tmp2,"glass")==1){
               damage $tmp,$tmp2,200;
          }
          freevar $tmp;
          freevar $tmp2;
     }
     on:inhand {
          event "ih","global";
          play "w_clipout.wav";
          $sht1=6-$sht;
          $sht2=(playergotitem(125)-$sht1);
          text 10,"$sht1|$sht2",0;
     }
     on:attack2 {
          $sniper=1-$sniper;
          if($sniper==0){
               image 1,"gfx\norm.bmp",0,0;
               play "zoom.wav";
          }else{
               image 1,"gfx\sniper.bmp",0,0;
               play "zoom.wav";
               zoom;
          }
     }
     on:noammo {
          msg "No ammo!",3;
          play "w_empty.wav";
     }
script=end
To the start Previous 1 Next To the start
Log in to reply Mods overviewStranded II overviewForums overview