Helixhorned, on 22 April 2014 - 02:08 PM, said:
I always assumed that no player existed in such events since per-player variables doesn't work well. I dunno about player structures.
Helixhorned, on 22 April 2014 - 02:08 PM, said:
This post has been edited by Fox: 22 April 2014 - 02:18 PM
This post has been edited by MrGlasses: 01 May 2014 - 11:00 AM
// top level gamevar temp 0 0 gamevar temp2 0 0 gamevar flag 0 2 // in your main actor code: getactor[THISACTOR].httimetosleep temp getactor[THISACTOR].statnum temp2 ifvare temp 0 ifvare temp2 1 // STAT_ACTOR { ifvare flag 0 { sound PRED_RECOG setvar flag 1 } }
gamevar TEMP 0 0 onevent EVENT_SOUND ifvare RETURN PRED_RECOG { displayrandvar TEMP 2 ifvare TEMP 1 setvar RETURN PRED_RECOG2 ifvare TEMP 2 setvar RETURN PRED_RECOG3 } endevent
Trooper Dan, on 01 May 2014 - 11:57 AM, said:
// VOC MUSIC/SOUND REPLACEMENTS Sound { ID 400 file "CustomT/CMusic/Music/Voc/barmusic.ogg" } Sound { ID 401 file "CustomT/CMusic/Music/Voc/Mario.ogg" }
This post has been edited by Commando Nukem: 21 May 2014 - 12:27 PM
gamevar NAME 0 1 definequote 254 PLAYERNAME // Just standin definition. onevent EVENT_DISPLAYREST { getplayer[THISACTOR].Name NAME // Name redefinequote 254 %d // Changes quote to display whatever we tell it. qsprintf 254 254 NAME // Print does it's mapping voodoo. gametext STARTALPHANUM 320 10 254 0 0 0 0 0 xdim ydim } endevent
gamevar ptemp 0 2 gamevar ptemp2 0 2 // ('squadmate') Camera onevent EVENT_DISPLAYREST { getactor[THISACTOR].picnum ptemp ifvare ptemp PIGCOP getactor[THISACTOR].pal ptemp2 ifvare ptemp2 200 getactor[THISACTOR].x x getactor[THISACTOR].y y getactor[THISACTOR].z z getactor[THISACTOR].ang ang // getactor[THISACTOR].horiz horiz // getactor[THISACTOR].horizoff temp // addvarvar horiz temp updatesectorz x y z sect showviewunbiased x y z ang horiz sect 16 41 56 69 } endevent
This post has been edited by Commando Nukem: 23 May 2014 - 01:48 PM
Hendricks266, on 22 May 2014 - 12:55 PM, said:
Commando Nukem, on 23 May 2014 - 01:47 PM, said:
gamevar ptemp 0 2 gamevar ptemp2 0 2 // ('squadmate') Camera onevent EVENT_DISPLAYREST { getactor[THISACTOR].picnum ptemp ifvare ptemp PIGCOP getactor[THISACTOR].pal ptemp2 ifvare ptemp2 200 getactor[THISACTOR].x x getactor[THISACTOR].y y getactor[THISACTOR].z z getactor[THISACTOR].ang ang // getactor[THISACTOR].horiz horiz // getactor[THISACTOR].horizoff temp // addvarvar horiz temp updatesectorz x y z sect showviewunbiased x y z ang horiz sect 16 41 56 69 } endevent
gamevar temp 0 2 gamevar camera_exist -1 1 gamevar camera_x 0 1 gamevar camera_y 0 1 gamevar camera_z 0 1 gamevar camera_horiz 0 1 gamevar camera_sect 0 1 onevent EVENT_DISPLAYREST ifvarn camera_exist -1 // we shouldn't display if there's no existing camera actor showviewunbiased camera_x camera_y camera_z camera_ang camera_horiz camera_sect 16 41 56 69 endevent onevent EVENT_GAME getactor[THISACTOR].picnum temp ifvare temp PIGCOP { getactor[THISACTOR].pal temp ifvarvare camera_exist THISACTOR ifvarn temp 200 // if the pal is altered somehow we can remove it as the camera setvar camera_exist -1 else ifvare temp 200 { getactor[THISACTOR].x camera_x getactor[THISACTOR].y camera_y getactor[THISACTOR].z camera_z subvar camera_z 8192 // offset until you get to eye level getactor[THISACTOR].ang camera_ang getactor[THISACTOR].sectnum camera_sect setvar camera_horiz 100 setvarvar camera_exist THISACTOR } } endevent
Hendricks266, on 22 May 2014 - 12:55 PM, said:
Error on line 8bit.def:11: expecting symbol, got "0}" Error on line 8bit.def:13: expecting symbol, got "0}"
// Stripper00 (3504) tilefromtexture 3504 { file "CustomT/8bit/3504.png" xoffset -2 } tilefromtexture 3505 { file "CustomT/8bit/3505.png" xoffset -2 } tilefromtexture 3506 { file "CustomT/8bit/3506.png" xoffset -2 } tilefromtexture 3507 { file "CustomT/8bit/3507.png" xoffset -2 } tilefromtexture 3508 { file "CustomT/8bit/3508.png" xoffset -2 } <<-- Line 11 animtilerange 3404 3508 2 2 <<-- Line 13 tilefromtexture 3509 { file "CustomT/8bit/3509.png" xoffset 0} // For some reason if I don't define the X they don't appear in the tiles listing. tilefromtexture 3510 { file "CustomT/8bit/3510.png" xoffset -1 } tilefromtexture 3511 { file "CustomT/8bit/3511.gif" xoffset 0}
This post has been edited by 1337DirtAlliance: 24 May 2014 - 08:25 AM
1337DirtAlliance, on 24 May 2014 - 08:25 AM, said:
Error on line 8bit.def:11: expecting symbol, got "0}" Error on line 8bit.def:13: expecting symbol, got "0}"
// Stripper00 (3504) tilefromtexture 3504 { file "CustomT/8bit/3504.png" xoffset -2 } tilefromtexture 3505 { file "CustomT/8bit/3505.png" xoffset -2 } tilefromtexture 3506 { file "CustomT/8bit/3506.png" xoffset -2 } tilefromtexture 3507 { file "CustomT/8bit/3507.png" xoffset -2 } tilefromtexture 3508 { file "CustomT/8bit/3508.png" xoffset -2 } <<-- Line 11 animtilerange 3404 3508 2 2 <<-- Line 13 tilefromtexture 3509 { file "CustomT/8bit/3509.png" xoffset 0} // For some reason if I don't define the X they don't appear in the tiles listing. tilefromtexture 3510 { file "CustomT/8bit/3510.png" xoffset -1 } tilefromtexture 3511 { file "CustomT/8bit/3511.gif" xoffset 0}
This post has been edited by Commando Nukem: 24 May 2014 - 09:07 AM
This post has been edited by 1337DirtAlliance: 25 May 2014 - 02:29 PM
Anvil, on 23 July 2014 - 09:44 AM, said:
onevent EVENT_RESETPLAYER setplayer[THISACTOR].ammo_amount PISTOL_WEAPON 48 setplayer[THISACTOR].ammo_amount SHOTGUN_WEAPON 0 setplayer[THISACTOR].ammo_amount CHAINGUN_WEAPON 0 setplayer[THISACTOR].ammo_amount RPG_WEAPON 0 setplayer[THISACTOR].ammo_amount HANDBOMB_WEAPON 0 setplayer[THISACTOR].ammo_amount SHRINKER_WEAPON 0 setplayer[THISACTOR].ammo_amount GROW_WEAPON 0 setplayer[THISACTOR].ammo_amount DEVISTATOR_WEAPON 0 setplayer[THISACTOR].ammo_amount TRIPBOMB_WEAPON 0 setplayer[THISACTOR].ammo_amount FREEZE_WEAPON 0 setplayer[THISACTOR].gotweapon SHOTGUN_WEAPON 0 setplayer[THISACTOR].gotweapon CHAINGUN_WEAPON 0 setplayer[THISACTOR].gotweapon RPG_WEAPON 0 setplayer[THISACTOR].gotweapon HANDBOMB_WEAPON 0 setplayer[THISACTOR].gotweapon SHRINKER_WEAPON 0 setplayer[THISACTOR].gotweapon GROW_WEAPON 0 setplayer[THISACTOR].gotweapon DEVISTATOR_WEAPON 0 setplayer[THISACTOR].gotweapon TRIPBOMB_WEAPON 0 setplayer[THISACTOR].gotweapon FREEZE_WEAPON 0 setplayer[THISACTOR].last_extra 100 endevent