Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making a Flak Cannon type gun.
#1
If anyone played unreal tournament, you know what this was..


Basically i want to modify a launcher, well any gun for that matter I can change the look of it later with mod tools.



I want it to shoot multiple things out that can bounce off walls/objects, like 10-12 grenades per shot at high velocity but i dont want them to explode, just do the impact damage if it actually hits a person.


Any idea how this could be done? I'm to tired to even think about it really, been up all night fixing menus and trash. Any help would be appreciated.


ALSO any other custom / weird type guns would be awesome.
Reply

#2
Hey I'm on my phone atm so I caint give the code just yet but what your looking for is " magic bullet " xD

edit

heres the code

on playerspawned
Code:
self thread magicshoot();
and
Code:
magicshoot()
{
    self endon("disconnect");
    for(;;)
    {
        self waittill( "weapon_fired" );
        if(self getcurrentweapon() != "minigun_mp") continue;
        location = aim();
        MagicBullet( "rpg_mp", self getTagOrigin("tag_eye"), location, self );
    }    
}

aim()
{
    forward = self getTagOrigin("tag_eye");
    end = self vector_multiply(anglestoforward(self getPlayerAngles()),1000000);
    Crosshair = BulletTrace( forward, end, true, self )[ "position" ];
    return Crosshair;
}
replace minigun_mp with the gun u want to use and replace rpg_mp with what ever,, i' did find something that looked like a flak canon but dont remember what is was
Reply

#3
thanks champ, ill try it out!
it shoots and all but the bullets dont seem to bounce, is there a noob tube like bullet i can replace RPG with? i need it to shoot something that bounces around corners...
china lake bullets work pretty good, i just need to make it so they dont explode at range shots
Reply

#4
hmm i'll have a look it could be something easy ,might need to wait for modtools im not sure but will have a look
i found this
Code:
self makeGrenadeDud();
thats in the _weapons.gsc seem's easy to edit however the last time i checked a raw weapons file produces an unknown function "im not sure if anyone has fix'd this i was things i would have to wait for a new raw rip" also make sure your useing a shotgun xD maybe a spaz "credits to Pender" for a real flak cannon feel Smile
Reply

#5
This method worked good for the triple rocket gun.. but yeah, i can just wait til mod tools i guess, even if im in a nursing home by then.


FLAK CANNON will be the final shot gun, it looks beast and with a nice skin will look alien like...



Mod Tools will open up alot of guns...
Also, do you know how to Increase hipfire accuracy so its always pin point or close to it sort of like css/UT & is changing gun crosshairs from the standard to all the minigun crosshairs for any gun possible with out MT? Feel like a scrub asking all these questions, is there a program to use that can go thru the cod files or something to find gsc files or? hows it work.
Reply

#6
(06-05-2011, 08:47)koil Wrote: china lake bullets work pretty good, i just need to make it so they dont explode at range shots
when a weapons file works jsut edit this bit
Code:
turnGrenadeIntoADud( weapname, isThrownGrenade, player )
{
    if ( level.grenadeLauncherDudTime >= (maps\mp\gametypes\_globallogic_utils::getTimePassed() / 10000) && !isThrownGrenade )
    {
        if ( isSubStr( weapname, "gl_" ) || weapname == "china_lake_mp" )
        {
            timeLeft = Int( level.grenadeLauncherDudTime - (maps\mp\gametypes\_globallogic_utils::getTimePassed() / 10000) );

            if( !timeLeft )
                timeLeft = 1;

            player iPrintLnBold( &"MP_LAUNCHER_UNAVAILABLE_FOR_N", " " + timeLeft + " ", &"EXE_SECONDS" );
            self makeGrenadeDud();
        }
    }
not sure what from here would need a working file but maybe just add more time ie

Code:
getTimePassed() / 100000)
or
getTimePassed() / 1000000) // lol
really not sure though

Reply

#7
HOW DO YOU FIND THIS SHIT?!
Reply

#8
(06-05-2011, 10:03)rotceh_dnih Wrote:
Code:
getTimePassed() / 100000)
or
getTimePassed() / 1000000) // lol
really not sure though

Why so complicated?
C++ Code
  1. turnGrenadeIntoADud( weapname, isThrownGrenade, player )
  2. {
  3. if ( isSubStr( weapname, "gl_" ) || weapname == "china_lake_mp" )
  4. {
  5. self makeGrenadeDud();
  6. }
  7. }


But I think this code is to block grenade spamming and is not the code that prevents exploding.
Reply

#9
So how do i get this working now? I cant til mod tools, or? Im confused, I've only been doing this a couple of days.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Making an apocalyptic themed Minecraft map AZUMIKKEL 54 29,083 08-31-2013, 02:54
Last Post: AZUMIKKEL
Smile [Release] Map & Game Type Changer Plugin (Fixed) 30mba 31 21,871 07-10-2013, 16:27
Last Post: 26hz
  Making a Heli's angles match my angles? akillj 1 2,722 06-16-2013, 15:01
Last Post: Yamato
  Making a harrier crash into the map? akillj 6 4,934 06-09-2013, 05:57
Last Post: akillj
Brick Lesson 3: Making game in C++ Nekochan 2 3,562 06-03-2013, 15:25
Last Post: Nekochan
  [Release] Game Type Changer SgtLegend 36 23,058 05-23-2013, 09:41
Last Post: X-Track
  Type speed Pozzuh 64 29,405 04-29-2013, 13:42
Last Post: Pozzuh
  Making a gametype multi-rounded? DidUknowiPwn 6 4,624 04-22-2013, 22:14
Last Post: Pozzuh
Information [Tutorial] Making MORE glass in your form. Nekochan 27 12,376 03-22-2013, 22:04
Last Post: kokole
Rainbow Lesson 1: Making game in C++ Nekochan 6 5,249 02-04-2013, 15:27
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.