English Zoom Camera modified.exe

5 replies
Goto Page
To the start Previous 1 Next To the start
12.06.11 01:54:17 pm
Up
Smurf
User
Offline Off
I have added a new command ,This will let you zoom in the camera.
the command is zoom;

This is a test download.Tell me if you want any changes.



screenshots http://imageshack.us/f/16/nozoom.png/
http://imageshack.us/f/577/zoomin.png/

download http://www.mediafire.com/?n6vbgzuevfq1oe9
edited 1×, last 12.06.11 02:27:22 pm
12.06.11 03:39:58 pm
Up
I installed the program correctly, but when I right-clicked, it only zoomed for a half-second! Is it supposed to be that way?
12.06.11 03:50:30 pm
Up
Smurf
User
Offline Off
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
12.06.11 06:16:58 pm
Up
Assassin moder
User
Offline Off
You can add:
∗Allow moving when process (for reload scripts)
∗Basic swim mode
∗Fall damage
∗Sprint (But don't make it :D)
13.06.11 01:19:38 pm
Up
Lion_Hearted
User
Offline Off
Could you also make it load an image on zoom?


Like a scope?
View my models! Also, check out the realistic hunting and rotting meat system in my mod. Lion_Hearted's Mod
14.06.11 10:34:17 pm
Up
Assassin moder
User
Offline Off
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