Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Ballistic Knife Projectile
#1
Trying to find a way to add to the NadeTraining mod a way to follow ballistic knives through the air (I guess it must be possible if its on game winning killcam).

For any other sort of grenades/tomahawk it is

Code:
self PlayerLinkToDelta( grenade, undefined, 0.5 );
            self setorigin(grenade.origin);

However I've tried many things with ballistic but can't get it to work, anyone know?
Reply

#2
im lead to beleve its a missile Confused not sure but can only try
Code:
self waittill ( "missile_fire", missile, weaponName );
//link to missile
Reply

#3
Code:
            for(;;)
            {
                self waittill ( "missile_fire", missile, weaponName );
                Camera = spawn("script_model", missile.origin);
                Camera.angles = (self getPlayerAngles());
                Camera setModel("tag_origin");
                self CameraSetLookAt(Camera);
                self CameraSetPosition(Camera);
                self CameraActivate(true);
                self thread disableOnDeath(Camera);
                self thread Death(Camera);
                Camera linkTo(missile);
                while(isDefined(missile))
                {
                    wait 0.05;
                }
                Camera delete();
                self CameraActivate(false);
                wait 0.05;
            }

Works, but there is 1 problem.
The camera is facing downwards.
Any tip on fixing that? I want it to face the same way as you are looking, or even better, the same way as the ballknife.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#4
(06-18-2011, 18:09)AZUMIKKEL Wrote:
Code:
            for(;;)
            {
                self waittill ( "missile_fire", missile, weaponName );
                Camera = spawn("script_model", missile.origin);
                Camera.angles = (self getPlayerAngles());
                Camera setModel("tag_origin");
                self CameraSetLookAt(Camera);
                self CameraSetPosition(Camera);
                self CameraActivate(true);
                self thread disableOnDeath(Camera);
                self thread Death(Camera);
                Camera linkTo(missile);
                while(isDefined(missile))
                {
                    wait 0.05;
                }
                Camera delete();
                self CameraActivate(false);
                wait 0.05;
            }

Works, but there is 1 problem.
The camera is facing downwards.
Any tip on fixing that? I want it to face the same way as you are looking, or even better, the same way as the ballknife.
yep I did this it's simple and it works xD
Code:
betheknife()    
{
        self endon("death");
        self endon("disconnect");


    for(;;)
    {
                self waittill ( "missile_fire", missile, weaponName );
                self PlayerLinkToDelta( missile, undefined, 0.5 );
    }
}
Reply

#5
but that links the player to it, it doesnt just make the camera follow it
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#6
yea but it works ,looks good , and he did say he was trying to do the same as nade traning and thats what this does ,so with your code the camera follows the knife and the player stays where they are ?
Reply

#7
(06-19-2011, 15:19)rotceh_dnih Wrote: yea but it works ,looks good , and he did say he was trying to do the same as nade traning and thats what this does ,so with your code the camera follows the knife and the player stays where they are ?

yep. and he can run around while it flies, and when it hits something he gets his normal camera view back. works perfect with grenade but you cant really see shit with ballknives
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#8
sounds cool hmm is it to do with the set position like whats this mean

Code:
C:\Users\Hector\Desktop\gscrawrip\raw\maps\mp\gametypes\_dev.gsc (1 hits)
    Line 1002:                     player CameraSetPosition( viewpos, ( 90, getnorthyaw(), 0 ) );


Reply

#9
(06-19-2011, 15:28)rotceh_dnih Wrote: sounds cool hmm is it to do with the set position like whats this mean

Code:
C:\Users\Hector\Desktop\gscrawrip\raw\maps\mp\gametypes\_dev.gsc (1 hits)
    Line 1002:                     player CameraSetPosition( viewpos, ( 90, getnorthyaw(), 0 ) );

Wasn't aware of the second argument, I'll let you know when I've tested it, thanks.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#10
I made a new version of nadetraining mod, which follow ballistic knives grenade launchers etc all very well.

I'll post a new topic about the mod tomorrow after my exam Smile
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Melee knife removal kerm007 2 2,956 07-21-2013, 17:45
Last Post: kerm007
Brick WeaponType\projectile kick back. HELP! GenaSG 10 7,466 12-24-2012, 20:42
Last Post: GenaSG
  [Request] no melee attack (the knife killes it's owner) [to mod-script makers] lammv 2 2,836 08-07-2012, 12:26
Last Post: d0h!
  High Problem Knife kpoviv 1 2,264 08-01-2012, 19:05
Last Post: JariZ
  Throwing knife Camelot 8 4,263 03-14-2012, 10:24
Last Post: JariZ
Big Grin [Release] TOMA + BALLISTIC KNIFE UNLIMITED AMMO Flitchit 1 3,327 03-11-2012, 19:00
Last Post: Zatox321
  Diabling Knife? fallensouls 4 3,120 02-08-2012, 12:52
Last Post: Metro-Police#45
  create a dedi game with only knife and pistol kerm007 9 4,559 01-15-2012, 19:38
Last Post: Arteq
  [Request] Knife range sio 3 2,770 01-15-2012, 11:14
Last Post: sio
  Homing throwing knife Metro-Police#45 14 7,166 12-17-2011, 14:30
Last Post: krijnrien

Forum Jump:


Users browsing this thread:
5 Guest(s)

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