Post: magicBullet function
07-12-2016, 12:04 PM #1
Couto
Haxor!
(adsbygoogle = window.adsbygoogle || []).push({}); I've been looking around on the BO2 Dump files and I can't seem to find the actual thread magicbullet. I have looked anywhere, does anyone have it's code?
07-12-2016, 12:55 PM #2
Originally posted by Couto View Post
I've been looking around on the BO2 Dump files and I can't seem to find the actual thread magicbullet. I have looked anywhere, does anyone have it's code?


what???
07-12-2016, 12:57 PM #3
TehMerkMods
I’m too L33T
Originally posted by Couto View Post
I've been looking around on the BO2 Dump files and I can't seem to find the actual thread magicbullet. I have looked anywhere, does anyone have it's code?


Originally posted by John View Post
what???


MagicBullet( <weaponName>, <sourceLoc>, <destLoc> )

I Believe he is asking for that

Source :
You must login or register to view this content.
07-12-2016, 01:44 PM #4
Couto
Haxor!
Originally posted by TehMerkMods View Post
MagicBullet( <weaponName>, <sourceLoc>, <destLoc> )

I Believe he is asking for that

Source :
You must login or register to view this content.


No, that's not it.

magicbullet is a function that is listed somewhere in the game that makes it usable, I want to know what's inside the magicbullet function.

like, I know what it does but I want to know what codes are inside of it.
07-12-2016, 05:56 PM #5
BullyWiiPlaza
Climbing up the ladder
Originally posted by Couto View Post
No, that's not it.

magicbullet is a function that is listed somewhere in the game that makes it usable, I want to know what's inside the magicbullet function.

like, I know what it does but I want to know what codes are inside of it.

None, it's a built-in function.
07-12-2016, 06:36 PM #6
Tristen
Who’s Jim Erased?
Originally posted by BullyWiiPlaza View Post
None, it's a built-in function.

what does the magicBullet function do?
07-12-2016, 07:35 PM #7
BullyWiiPlaza
Climbing up the ladder
Originally posted by Tristen View Post
what does the magicBullet function do?

Spawn shots. Here is an example script:
    // self thread shootProjectiles("870mcs_mp");
shootProjectiles(projectile)
{
level endon("game_ended");
self endon("disconnect");

while(true)
{
self waittill("weapon_fired");

start = self getEye();
end = getCrosshairTraceOrigin();
magicBullet(projectile, start, end, self); // magicBullet() used here
}
}

getCrosshairTraceOrigin()
{
direction = self getPlayerAngles();
direction_vec = anglesToForward(direction);
eye = self getEye();

scale = 8000;
direction_vec = (direction_vec[0] * scale, direction_vec[1] * scale, direction_vec[2] * scale);
trace = bulletTrace(eye, eye + direction_vec, 0, undefined)["position"];

return trace;
}

Video:
Last edited by BullyWiiPlaza ; 07-12-2016 at 07:39 PM.
07-12-2016, 08:19 PM #8
Couto
Haxor!
Originally posted by BullyWiiPlaza View Post
None, it's a built-in function.


ok, but what does that mean tho? :X

and there's no way to get it's "source"?
07-12-2016, 08:21 PM #9
Couto
Haxor!
Originally posted by BullyWiiPlaza View Post
None, it's a built-in function.


basically I want to know the fx for each weapon when you use magicbullet
07-12-2016, 08:40 PM #10
BullyWiiPlaza
Climbing up the ladder
Originally posted by Couto View Post
and there's no way to get it's "source"?

No, you can't. It has no "source" in GSC but in C++ or so.

The following user thanked BullyWiiPlaza for this useful post:

Couto

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo