Anyone know how to get external crosshairs in JK?
Those who live by the sword get shot by those who don't.
OSC
OSC
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
# crosshair.cog # # This cog uses a fast pulse to create an # external crosshair in front of the player. # # [SM] #======================================================================# symbols thing player local template chtemp=+crosshair local message newplayer message pulse message killed end #======================================================================# code #---------------------------------------------------------------- newplayer: player = GetSenderRef(); SetPulse(0.001); Return; #---------------------------------------------------------------- pulse: if(GetCurrentCamera() == 1 && GetThingHealth(player) > 0) FireProjectile(player, chtemp, -1, -1, '0 0.2 0', '0 0 0', 0, 0, 0, 0); Return; #---------------------------------------------------------------- killed: SetPulse(0); Return; #---------------------------------------------------------------- end
_based none orient=(0/0/0) type=weapon move=physics timer=0.01 +crosshair _based sprite=crosshair.spr
crosshair 116 0 0 0x000 cog=crosshair.cog