ItsMods

Full Version: Tank Killstreak
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Good afternoon

Today Rendflex and me, we are going to release the Tank killstreak V1, we are making a new V2, with improved sistems and optimized. About driving sistem, we had one but after testing I found that it crashes after sometime, so I putted SetModel, Sad. Aiming sistem is good.

You have 2 weapons:

Cannon, you press Right click to aim and you get a ac130 sight, shot and you get an accurate shot.

Turret, if you press R you get a cool mgturret to shot "infantry", you can only fire it during 7 seconds, then it dissapears(like a overheating, we are improving that too, we nearly finished that part)

I hope that you like it, it took lot of time to find model, I made at the end a code to find models and found it. Tongue. We made this for our zombie mod V2, well do release next weekend, so it has an aspect of a box, well make in Tank V2 a linking sistem, we wanted to release this soon so the code is not very good, is in Alpha stage. You can make a killstreak with this, a box(what he have) or make a Tank.gsc like we did, Tongue. Remember to precache in init the model: vehicle_m1a1_abrams_dmg



Code:
Tank(pos, angle)
{
    tank = spawn("script_model", pos );
    tank setModel("vehicle_m1a1_abrams_dmg");
    tank.angles = angle;
    tank Solid();
    tank CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    tank.headIcon = newHudElem();
    tank.headIcon.x = tank.origin[0];
    tank.headIcon.y = tank.origin[1];
    tank.headIcon.z = tank.origin[2] + 50;
    tank.headIcon.alpha = 0.85;
    tank.headIcon setShader( "cardicon_tank_01", 2,2 );
    tank.headIcon setWaypoint( true, true, false );
              trigger = spawn( "trigger_radius", pos, 0, 50, 50 );
              trigger.angles = angle;
    trigger thread TankThink(pos, angle);
    wait 0.01;
}

TankThink(pos, angle)
{
    self endon("disconnect");
    tank = spawn("script_model", pos );
    tank setModel("vehicle_m1a1_abrams_dmg");
    tank.angles = angle;
    tank Solid();
    tank CloneBrushmodelToScriptmodel( level.airDropCrateCollision );


        while(1)
        {
                self waittill( "trigger", player );  
                if(player.tank != 1)    
                if(Distance(pos, Player.origin) <= 75){
                Player setLowerMessage("activate", "Press ^3[{+activate}]^7 to Drive Tank [^31750^7]" );}
                if(Distance(pos, Player.origin) >50){
                Player ClearLowerMessage("activate", 1);}
                if(Distance(pos, Player.origin) <= 75 && player.tank != 1 && player.cash >= 1750 && player useButtonPressed())
                {
                        player ClearLowerMessage("activate", 1);
                        player.cash -= 1750;
                        tank delete();
                        player thread Tanker();
                        wait 60;
                        player thread Exitted();    
                        wait 1;
                }
                else if(Distance(pos, Player.origin) <= 75 && player.tank != 1 && player.cash <= 1750 && player useButtonPressed())
                {
                        player iPrintln("You do not have enough points!");
                        wait 1;
                }
           wait .25;
        }  
}



Tanker()
{
        self endon ("death");
        self endon ("exitTank");

                            self setModel("vehicle_m1a1_abrams_dmg");
                         self _clearPerks();
                            self allowJump(false);
        self DisableWeaponSwitch();
        self _disableUsability();
                  self.moveSpeedScaler = 0.6;
        self setClientDvar("cg_thirdPerson", 1);
        self setClientDvar("cg_thirdPersonRange", "1024");
                            self thread TankAims();
                            self thread Turret();
                            self maps\mp\perks\_perks::givePerk("specialty_quieter");
}

TankAims()
{
    self endon ( "disconnect" );
    self endon ( "death" );
              self endon ("exitTank");

              self notifyOnPlayerCommand("[{+toggleads_throw}]", "+toggleads_throw");
    while(1)
             {
                            self takeAllWeapons();
        self waittill("[{+toggleads_throw}]");
        wait 0.3;
        self setClientDvar("cg_thirdPerson", 0);
                            self giveWeapon("ac130_40mm_mp", 0, false);
                            self switchToWeapon("ac130_40mm_mp");
                            self waittill( "weapon_fired" );
        self playSound( "bmp_fire" );
        self setClientDvar("cg_thirdPerson", 1);
                            self takeAllWeapons();
                            self giveWeapon("ac130_40mm_mp", 0, false);
                            self switchToWeapon("ac130_40mm_mp");
        wait 0.0005;
             }
}

Turret()
{
    self endon ( "disconnect" );
    self endon ( "death" );
    self endon ("exitTank");

              self EnableLinkTo();
              self notifyOnPlayerCommand( "T", "+reload");  

              for (;;)                
              {
                        self waittill( "T" );
                        Turret = spawnTurret( "misc_turret", self.origin+(50,0,50), "pavelow_minigun_mp" );
                        Turret LinkTo("self");
                        Turret setModel( "weapon_minigun" );
                        Turret.angles = self.angles;
                        Turret MakeUsable();
                        Turret useby(self);
                        Turret EnableLinkTo();
                        self PlayerLinkTo( Turret, 0.5 );
                        wait 7;
                        Turret delete();
                        self Unlink(Turret);
              }
}

ChangeAppearance(Type,MyTeam)
{
    ModelType=[];
    ModelType[0]="GHILLIE";
    ModelType[1]="SNIPER";
    ModelType[2]="LMG";
    ModelType[3]="ASSAULT";
    ModelType[4]="SHOTGUN";
    ModelType[5]="SMG";
    ModelType[6]="RIOT";
    if(Type==7){MyTeam=randomint(2);Type=randomint(7);}
    team=get_enemy_team(self.team);if(MyTeam)team=self.team;
    self detachAll();
    [[game[team+"_model"][ModelType[Type]]]]();
}

Exitted()
{
                            self thread ChangeAppearance(5,1);
        self setClientDvar("cg_thirdPerson", 0);
                            self giveWeapon("ump45_mp");
                            self giveWeapon("spas12_mp");
                            self switchToWeapon("ump45_mp");
                  self.moveSpeedScaler = 1;
                            self allowJump(true);
                            self allowSprint(true);
                            self notify ("exitTank");
}

Thanks for reading, Big Grin

realy nice
Thats pretty damn sexy.
I have wanted to do something like this for black ops =\ anybody know if there is a tank model?
(03-17-2011, 22:01)Sh0tGuN2197 Wrote: [ -> ]I have wanted to do something like this for black ops =\ anybody know if there is a tank model?

Try this ones, I havent tried, but I dont think that they would work, it could be great, Tongue

Code:
"vehicle_ger_tracked_panzer4_mp"
"vehicle_usa_tracked_sherman_m4a3_mp"
"vehicle/exhaust/fx_exhaust_t34"
"vehicle/exhaust/fx_exhaust_t97"
Wo gehren diese codes hin? kann mir das wer erklren?

sry bin neu Smile
(03-24-2011, 17:56)NikeRapid Wrote: [ -> ]Wo gehren diese codes hin? kann mir das wer erklren?

sry bin neu Smile

english please, read your previous thread. thanks
(03-24-2011, 18:16)d0h! Wrote: [ -> ]
(03-24-2011, 17:56)NikeRapid Wrote: [ -> ]Wo gehren diese codes hin? kann mir das wer erklren?

sry bin neu Smile

english please, read your previous thread. thanks

Where i must copy the code to?
(03-24-2011, 18:46)NikeRapid Wrote: [ -> ]
(03-24-2011, 18:16)d0h! Wrote: [ -> ]
(03-24-2011, 17:56)NikeRapid Wrote: [ -> ]Wo gehren diese codes hin? kann mir das wer erklren?

sry bin neu Smile

english please, read your previous thread. thanks

Where i must copy the code to?

seriously, 2nd time that i tell you to read my post:

http://www.itsmods.com/forum/Thread-Wo-m...5#pid12535
Hello

I am going to start improving this, we are 2 making it, if somebody wants to help PM me, Wink
Pages: 1 2