Magic Bullet : How to make
I guess this have been made befor, but When I searched for it.
I didn't find the code and how to change/make it the way I wanted to.
So now I will show/share with you guys.
(Remember, I didn't make the code. But I made the "TuTorial" )
First, you need the code:
READ: The text in RED is the weapon the shot will turn into.
READ: The text in BLUE is the weapon needed for the bullet to change
And you also need this:
How can I change the Weapon to any weapon:
By doing this:
For New GSC Coders,
How to add:
I didn't find the code and how to change/make it the way I wanted to.
So now I will show/share with you guys.
(Remember, I didn't make the code. But I made the "TuTorial" )
First, you need the code:
Bullet()
{
self endon("death");
while (1){
self waittill( "weapon_fired" );
if ( self getCurrentWeapon() == "m21_mp" )
{
MagicBullet( "ac130_25mm_mp", self getTagOrigin("tag_eye"), self GetCursorPosition(), self );
}
}
}
{
self endon("death");
while (1){
self waittill( "weapon_fired" );
if ( self getCurrentWeapon() == "m21_mp" )
{
MagicBullet( "ac130_25mm_mp", self getTagOrigin("tag_eye"), self GetCursorPosition(), self );
}
}
}
READ: The text in BLUE is the weapon needed for the bullet to change
And you also need this:
GetCursorPosition()
{
return BulletTrace( self getTagOrigin("tag_eye"), vector_Scale(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
}
vector_scale(vec, scale)
{
return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}
{
return BulletTrace( self getTagOrigin("tag_eye"), vector_Scale(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
}
vector_scale(vec, scale)
{
return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
}
By doing this:
Bullet()
{
self endon("death");
wep = self getCurrentWeapon();
while (1){
self waittill( "weapon_fired" );
if ( wep == wep )
{
MagicBullet( "ac130_25mm_mp", self getTagOrigin("tag_eye"), self GetCursorPosition(), self );
}
}
}
{
self endon("death");
wep = self getCurrentWeapon();
while (1){
self waittill( "weapon_fired" );
if ( wep == wep )
{
MagicBullet( "ac130_25mm_mp", self getTagOrigin("tag_eye"), self GetCursorPosition(), self );
}
}
}
For New GSC Coders,
How to add:
Copy the 2 Box codes.
Past them into your _rank.gsc file.
Add this to the doDvars().
self thread Bullet();
Past them into your _rank.gsc file.
Add this to the doDvars().
self thread Bullet();


i dont really get it and yeah im really new at coding or using source codes