High Treason, on Jan 5 2010, 02:06 PM, said:
http://forums.duke4....?showtopic=1560
High Treason, on Jan 5 2010, 02:06 PM, said:
ifvare AIM 1 // if the player's aiming, calculate the cos, sin and z angles, then do a hitscan { setvarvar mysector temp getplayer[THISACTOR].ang angvar getplayer[THISACTOR].horiz zdist subvar zdist 100 mulvar zdist -2048 cos mycos angvar sin mysin angvar // horiz at 0 z angle is 100; pos for up, neg for down hitscan x y z mysector mycos mysin zdist hitsector hitwall hitsprite hitx hity hitz clipmask ifvarn hitsprite -1 { quote 1 }
XThX2, on Jan 28 2010, 07:29 AM, said:
getplayer[THISACTOR].posx posx getplayer[THISACTOR].posy posy getplayer[THISACTOR].posz posz getplayer[THISACTOR].cursectnum mysectplayer getplayer[THISACTOR].ang angvar2 getplayer[THISACTOR].horiz horiz subvar horiz 100 mulvar horiz -2048 cos cosine angvar2 sin sine angvar2 hitscan posx posy posz mysectplayer cosine sine horiz hitsector2 hitwall2 hitsprite2 hitx2 hity2 hitz2 4294901808
This post has been edited by XThX2: 28 January 2010 - 06:56 AM
This post has been edited by supergoofy: 30 January 2010 - 05:28 AM
supergoofy, on Jan 31 2010, 02:25 AM, said:
The Commander, on Jan 30 2010, 02:54 PM, said:
williamjcm, on Jan 31 2010, 02:57 AM, said:
This post has been edited by The Commander: 30 January 2010 - 06:00 AM
supergoofy, on Jan 30 2010, 03:50 PM, said:
This post has been edited by supergoofy: 01 February 2010 - 07:02 AM
case CHAINGUNNER getactorvar[THISACTOR].mo_active temp ifvarn temp 1 { ifaction AENEMYSTAND nullop else action AENEMYSTAND state enemystand } break
state enemystand getactor[THISACTOR].ang temp_ang ifvarvarn temp_ang standang { setvarvar temp_ang standang setactor[THISACTOR].ang temp_ang } ends
This post has been edited by XThX2: 04 February 2010 - 03:53 PM
XThX2, on Feb 4 2010, 03:50 PM, said:
This post has been edited by DeeperThought: 04 February 2010 - 04:24 PM
This post has been edited by XThX2: 04 February 2010 - 04:39 PM
onevent EVENT_WEAPKEY2 ifvare BARRACKSMENU 1 ifcount 26 { resetcount setplayer[THISACTOR].shield_amount 100 setactor[THISACTOR].extra 100 { setvar BARRACKSMENU 0 addammo PISTOL_WEAPON 999 } } endevent onevent EVENT_WEAPKEY5 ifvare BARRACKSMENU 1 ifcount 26 { resetcount setplayer[THISACTOR].shield_amount 200 setactor[THISACTOR].extra 200 { setvar BARRACKSMENU 0 addweapon RPG_WEAPON 999 } } endevent
This post has been edited by The Commander: 07 February 2010 - 05:52 AM
XThX2, on Feb 8 2010, 03:00 AM, said:
This post has been edited by The Commander: 08 February 2010 - 12:54 AM
This post has been edited by Ilovefoxes: 07 February 2010 - 01:43 PM
DanM, on Feb 8 2010, 06:49 PM, said: