What's new

[Release] Shoot Carepackages on Blackops

  • Thread starter teh1337
  • Start date
  • Views 2,563
teh1337

teh1337

Some call me the Dear Leader-most just say teh1337
Experienced Veteran Programmer Frame In Gold
Messages
1,555
Reaction score
2,224
Points
375
Sin$
0
Shootable Carepackages on Blackops!

Video:
http://www.youtube.com/watch?v=f-zS2MhyL74

Code:
doCpz() 
{
self endon("death");
for(;;) 
{ 
self waittill ( "weapon_fired" ); 
forward = self getTagOrigin("j_head"); 
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000); 
teh1337 = BulletTrace( forward, end, 0, self )[ "position" ]; 
self thread maps\mp\gametypes\_supplydrop::dropCrate(teh1337, self.angles, "supplydrop_mp", self, self.pers["team"]);
wait 0.5; //Prevents spamming!
} 
} 
vector_scal(vec, scale) 
{ 
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale); 
return vec; 
}

Credits:
Teh1337 - Me - 95% - Found how to spawn a cp and wrote the code
CraigChrist8239 - 5% - Idea

<3 Teh1337 <3
 
VATS

VATS

Vault 101
Messages
1,210
Reaction score
561
Points
205
Sin$
7
Very intuitive, and original.
biggrin.gif
 
Lost4468

Lost4468

Contributor
Messages
2,202
Reaction score
1,760
Points
310
Sin$
0
Gay because you're not shooting it. Maybe you should spawn it in front of you then launch it.
 
Chris57662

Chris57662

Contributor
Forum Addict
Messages
3,105
Reaction score
409
Points
355
Sin$
7
Shootable Carepackages on Blackops!

Video:
http://www.youtube.com/watch?v=f-zS2MhyL74

Code:
doCpz() 
{
self endon("death");
for(;;) 
{ 
self waittill ( "weapon_fired" ); 
forward = self getTagOrigin("j_head"); 
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000); 
teh1337 = BulletTrace( forward, end, 0, self )[ "position" ]; 
self thread maps\mp\gametypes\_supplydrop::dropCrate(teh1337, self.angles, "supplydrop_mp", self, self.pers["team"]);
wait 0.5; //Prevents spamming!
} 
} 
vector_scal(vec, scale) 
{ 
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale); 
return vec; 
}

Credits:
Teh1337 - Me - 95% - Found how to spawn a cp and wrote the code
CraigChrist8239 - 5% - Idea

<3 Teh1337 <3
Your rep is my area code <3
 
iM ShARk xX

iM ShARk xX

Contributor
Programmer
Messages
1,832
Reaction score
831
Points
270
Sin$
0
try to make it as a shot not spawn it at the cross air , and it will be better <3 :smile:
 
Top Bottom
Login
Register