Posts: 623
Threads: 57
Joined: Jan 2011
Reputation:
14
something is wrong: when i shoot the bullet goes normally but the magic bullet goes 1 meter under it
Posts: 3,535
Threads: 420
Joined: Dec 2010
Reputation:
106
(04-22-2011, 16:26)eliteCVDelite Wrote: something is wrong: when i shoot the bullet goes normally but the magic bullet goes 1 meter under it
For me goes straight to your crosshair.......
Posts: 623
Threads: 57
Joined: Jan 2011
Reputation:
14
(04-22-2011, 16:29)Yamato Wrote: (04-22-2011, 16:26)eliteCVDelite Wrote: something is wrong: when i shoot the bullet goes normally but the magic bullet goes 1 meter under it
For me goes straight to your crosshair.......
i deleted crosshair, is that the problem?
Posts: 3,535
Threads: 420
Joined: Dec 2010
Reputation:
106
(04-22-2011, 16:43)eliteCVDelite Wrote: (04-22-2011, 16:29)Yamato Wrote: (04-22-2011, 16:26)eliteCVDelite Wrote: something is wrong: when i shoot the bullet goes normally but the magic bullet goes 1 meter under it
For me goes straight to your crosshair.......
i deleted crosshair, is that the problem?
Dont know, I have never tried that.....
Posts: 2
Threads: 0
Joined: Jul 2011
Reputation:
0
(04-16-2011, 08:35)Yamato Wrote: (04-15-2011, 15:15)eliteCVDelite Wrote: (04-14-2011, 13:37)Yamato Wrote: 1-
Code: GrimReaper()
{
self endon("death");
self giveWeapon("cheytac_mp", 0, false);
for(;;){
self waittill ("weapon_fired");
if ( self getCurrentWeapon() == "cheytac_mp" )
{
forward = self getTagOrigin("tag_weapon_left");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self )[ "position" ];
MagicBullet( "ac130_105mm_mp", forward, location, self );}}
}
yamato this don't work for me, or I'm doing wrong...
can you say what I must add?
I thought you have them, sorry, put this things anywhere in your code and in Onplayerspawned() put: self thread GrimReaper();
Code: vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}
GetCursorPos()
{
forward = self getTagOrigin("tag_eye");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self)[ "position" ];
return location;
}
i'm a noob...where should i apply this Grimreaper code.?teach me please.
Posts: 3,535
Threads: 420
Joined: Dec 2010
Reputation:
106
(08-12-2011, 18:10)bollocq Wrote: (04-16-2011, 08:35)Yamato Wrote: (04-15-2011, 15:15)eliteCVDelite Wrote: (04-14-2011, 13:37)Yamato Wrote: 1-
Code: GrimReaper()
{
self endon("death");
self giveWeapon("cheytac_mp", 0, false);
for(;;){
self waittill ("weapon_fired");
if ( self getCurrentWeapon() == "cheytac_mp" )
{
forward = self getTagOrigin("tag_weapon_left");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self )[ "position" ];
MagicBullet( "ac130_105mm_mp", forward, location, self );}}
}
yamato this don't work for me, or I'm doing wrong...
can you say what I must add?
I thought you have them, sorry, put this things anywhere in your code and in Onplayerspawned() put: self thread GrimReaper();
Code: vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}
GetCursorPos()
{
forward = self getTagOrigin("tag_eye");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self)[ "position" ];
return location;
}
i'm a noob...where should i apply this Grimreaper code.?teach me please.
mmm, yes
|