But this gives unknown function for COD4. And I tried to find the prototype of this function looking at the MW2 files but I could never find it. I think they made it in MW2 as a compiler built in function, same as println() , or setorigin(). These ones does not exist in raw files, they are part of IW engine, so we cannot see the code or modify them.
MagicBullet( <weaponName>, <sourceLoc>, <destLoc> )
Fire a 'magic bullet', from the source location towards the destination point.
MagicBullet( "mosin_nagant_sniper", self.origin, target.origin )
1 : <weaponName> The name of the weapon
2 : <start> The bullet tracer starting point
3 : <end> The end point