1174 lines
38 KiB
C++
1174 lines
38 KiB
C++
/*
|
|
==============================================================================
|
|
|
|
ALL PLAYERS FRAME CONTROL!!!
|
|
MG
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
//=================================================================
|
|
//PALADIN
|
|
//
|
|
$frame attgnt1 attgnt2 attgnt3 attgnt4 attgnt5
|
|
$frame attgnt6 attgnt7 attgnt8 attgnt9 attgnt10
|
|
$frame attgnt11
|
|
|
|
//
|
|
$frame pattstf1 pattstf2 pattstf3 pattstf4
|
|
|
|
//
|
|
$frame attswd1 attswd2 attswd3 attswd4 attswd5
|
|
$frame attswd6 attswd7 attswd8 attswd9 attswd10
|
|
$frame attswd11 attswd12
|
|
|
|
//
|
|
$frame pcrouch1 pcrouch2 pcrouch3 pcrouch4 pcrouch5
|
|
$frame pcrouch6 pcrouch7 pcrouch8 pcrouch9 pcrouch10
|
|
$frame pcrouch11 pcrouch12 pcrouch13 pcrouch14 pcrouch15
|
|
$frame pcrouch16 pcrouch17 pcrouch18 pcrouch19 pcrouch20
|
|
|
|
//
|
|
$frame pdeath1 pdeath2 pdeath3 pdeath4 pdeath5
|
|
$frame pdeath6 pdeath7 pdeath8 pdeath9 pdeath10
|
|
$frame pdeath11 pdeath12 pdeath13 pdeath14 pdeath15
|
|
$frame pdeath16 pdeath17 pdeath18 pdeath19 pdeath20
|
|
|
|
//
|
|
$frame pdecap1 pdecap2 pdecap3 pdecap4 pdecap5
|
|
$frame pdecap6 pdecap7 pdecap8 pdecap9 pdecap10
|
|
$frame pdecap11 pdecap12 pdecap13 pdecap14 pdecap15
|
|
$frame pdecap16 pdecap17 pdecap18 pdecap19 pdecap20
|
|
$frame pdecap21 pdecap22 pdecap23 pdecap24 pdecap25
|
|
$frame pdecap26 pdecap27 pdecap28
|
|
|
|
//
|
|
$frame flygnt1 flygnt2 flygnt3 flygnt4 flygnt5
|
|
$frame flygnt6 flygnt7 flygnt8 flygnt9 flygnt10
|
|
$frame flygnt11 flygnt12 flygnt13 flygnt14 flygnt15
|
|
|
|
//
|
|
$frame pflystf1 pflystf2 pflystf3 pflystf4 pflystf5
|
|
$frame pflystf6 pflystf7 pflystf8 pflystf9 pflystf10
|
|
$frame pflystf11 pflystf12 pflystf13 pflystf14 pflystf15
|
|
|
|
//
|
|
$frame flyswd1 flyswd2 flyswd3 flyswd4 flyswd5
|
|
$frame flyswd6 flyswd7 flyswd8 flyswd9 flyswd10
|
|
$frame flyswd11 flyswd12 flyswd13 flyswd14 flyswd15
|
|
|
|
//
|
|
$frame pjump1 pjump2 pjump3 pjump4 pjump5
|
|
$frame pjump6 pjump7 pjump8 pjump9 pjump10
|
|
$frame pjump11 pjump12
|
|
|
|
//
|
|
$frame paingnt1 paingnt2 paingnt3 paingnt4 paingnt5
|
|
$frame paingnt6 paingnt7
|
|
|
|
//
|
|
$frame ppainstf1 ppainstf2 ppainstf3 ppainstf4 ppainstf5
|
|
$frame ppainstf6 ppainstf7
|
|
|
|
//
|
|
$frame painswd1 painswd2 painswd3 painswd4 painswd5
|
|
$frame painswd6 painswd7
|
|
|
|
//
|
|
$frame rungnt1 rungnt2 rungnt3 rungnt4 rungnt5
|
|
$frame rungnt6 rungnt7 rungnt8 rungnt9 rungnt10
|
|
$frame rungnt11 rungnt12
|
|
|
|
//
|
|
$frame prunstf1 prunstf2 prunstf3 prunstf4 prunstf5
|
|
$frame prunstf6 prunstf7 prunstf8 prunstf9 prunstf10
|
|
$frame prunstf11 prunstf12
|
|
|
|
//
|
|
$frame runswd1 runswd2 runswd3 runswd4 runswd5
|
|
$frame runswd6 runswd7 runswd8 runswd9 runswd10
|
|
$frame runswd11 runswd12
|
|
|
|
//
|
|
$frame stdgnt1 stdgnt2 stdgnt3 stdgnt4 stdgnt5
|
|
$frame stdgnt6 stdgnt7 stdgnt8 stdgnt9 stdgnt10
|
|
$frame stdgnt11 stdgnt12 stdgnt13
|
|
|
|
//
|
|
$frame pstdstf1 pstdstf2 pstdstf3 pstdstf4 pstdstf5
|
|
$frame pstdstf6 pstdstf7 pstdstf8 pstdstf9 pstdstf10
|
|
$frame pstdstf11 pstdstf12 pstdstf13
|
|
|
|
//
|
|
$frame stdswd1 stdswd2 stdswd3 stdswd4 stdswd5
|
|
$frame stdswd6 stdswd7 stdswd8 stdswd9 stdswd10
|
|
$frame stdswd11 stdswd12 stdswd13
|
|
|
|
|
|
//=================================================================
|
|
$framevalue 0
|
|
|
|
//CRUSADER
|
|
//
|
|
$frame ccrouch1 ccrouch2 ccrouch3 ccrouch4 ccrouch5
|
|
$frame ccrouch6 ccrouch7 ccrouch8 ccrouch9 ccrouch10
|
|
$frame ccrouch11 ccrouch12 ccrouch13 ccrouch14 ccrouch15
|
|
$frame ccrouch16 ccrouch17 ccrouch18 ccrouch19 ccrouch20
|
|
|
|
//
|
|
$frame cdecap1 cdecap2 cdecap3 cdecap4 cdecap5
|
|
$frame cdecap6 cdecap7 cdecap8 cdecap9 cdecap10
|
|
$frame cdecap11 cdecap12 cdecap13 cdecap14 cdecap15
|
|
$frame cdecap16 cdecap17 cdecap18 cdecap19 cdecap20
|
|
$frame cdecap21 cdecap22 cdecap23 cdecap24 cdecap25
|
|
$frame cdecap26 cdecap27 cdecap28
|
|
|
|
//
|
|
$frame cdeath1 cdeath2 cdeath3 cdeath4 cdeath5
|
|
$frame cdeath6 cdeath7 cdeath8 cdeath9 cdeath10
|
|
$frame cdeath11 cdeath12 cdeath13 cdeath14 cdeath15
|
|
$frame cdeath16 cdeath17 cdeath18 cdeath19 cdeath20
|
|
|
|
//
|
|
$frame flyham1 flyham2 flyham3 flyham4 flyham5
|
|
$frame flyham6 flyham7 flyham8 flyham9 flyham10
|
|
$frame flyham11 flyham12 flyham13 flyham14 flyham15
|
|
|
|
//
|
|
$frame attham1 attham2 attham3 attham4 attham5
|
|
$frame attham6 attham7 attham8 attham9 attham10
|
|
|
|
//
|
|
$frame painham1 painham2 painham3 painham4 painham5
|
|
$frame painham6 painham7 painham8
|
|
|
|
//
|
|
$frame stdham1 stdham2 stdham3 stdham4 stdham5
|
|
$frame stdham6 stdham7 stdham8 stdham9 stdham10
|
|
$frame stdham11 stdham12 stdham13
|
|
|
|
//
|
|
$frame runham1 runham2 runham3 runham4 runham5
|
|
$frame runham6 runham7 runham8 runham9 runham10
|
|
$frame runham11 runham12
|
|
|
|
//
|
|
$frame flyice1 flyice2 flyice3 flyice4 flyice5
|
|
$frame flyice6 flyice7 flyice8 flyice9 flyice10
|
|
$frame flyice11 flyice12 flyice13 flyice14 flyice15
|
|
|
|
//
|
|
$frame painice1 painice2 painice3 painice4 painice5
|
|
$frame painice6 painice7 painice8
|
|
|
|
//
|
|
$frame runice1 runice2 runice3 runice4 runice5
|
|
$frame runice6 runice7 runice8 runice9 runice10
|
|
$frame runice11 runice12
|
|
|
|
//
|
|
$frame attice1 attice2 attice3 attice4
|
|
|
|
//
|
|
$frame stdice1 stdice2 stdice3 stdice4 stdice5
|
|
$frame stdice6 stdice7 stdice8 stdice9 stdice10
|
|
$frame stdice11 stdice12 stdice13
|
|
|
|
//
|
|
$frame cjump1 cjump2 cjump3 cjump4 cjump5
|
|
$frame cjump6 cjump7 cjump8 cjump9 cjump10
|
|
$frame cjump11 cjump12 cjump13
|
|
|
|
//
|
|
$frame cflystf1 cflystf2 cflystf3 cflystf4 cflystf5
|
|
$frame cflystf6 cflystf7 cflystf8 cflystf9 cflystf10
|
|
$frame cflystf11 cflystf12 cflystf13 cflystf14 cflystf15
|
|
|
|
//
|
|
$frame cpainstf1 cpainstf2 cpainstf3 cpainstf4 cpainstf5
|
|
$frame cpainstf6 cpainstf7 cpainstf8
|
|
|
|
//
|
|
$frame crunstf1 crunstf2 crunstf3 crunstf4 crunstf5
|
|
$frame crunstf6 crunstf7 crunstf8 crunstf9 crunstf10
|
|
$frame crunstf11 crunstf12
|
|
|
|
//
|
|
$frame cattstf1 cattstf2 cattstf3 cattstf4 cattstf5
|
|
|
|
//
|
|
$frame cstdstf1 cstdstf2 cstdstf3 cstdstf4 cstdstf5
|
|
$frame cstdstf6 cstdstf7 cstdstf8 cstdstf9 cstdstf10
|
|
$frame cstdstf11 cstdstf12 cstdstf13
|
|
|
|
|
|
//=================================================================
|
|
$framevalue 0
|
|
|
|
//NECROMANCER
|
|
//
|
|
$frame ncrouch1 ncrouch2 ncrouch3 ncrouch4 ncrouch5
|
|
$frame ncrouch6 ncrouch7 ncrouch8 ncrouch9 ncrouch10
|
|
$frame ncrouch11 ncrouch12 ncrouch13 ncrouch14 ncrouch15
|
|
$frame ncrouch16 ncrouch17 ncrouch18 ncrouch19 ncrouch20
|
|
|
|
//
|
|
$frame ndeath1 ndeath2 ndeath3 ndeath4 ndeath5
|
|
$frame ndeath6 ndeath7 ndeath8 ndeath9 ndeath10
|
|
$frame ndeath11 ndeath12 ndeath13 ndeath14 ndeath15
|
|
$frame ndeath16 ndeath17 ndeath18 ndeath19 ndeath20
|
|
|
|
//
|
|
$frame ndecap1 ndecap2 ndecap3 ndecap4 ndecap5
|
|
$frame ndecap6 ndecap7 ndecap8 ndecap9 ndecap10
|
|
$frame ndecap11 ndecap12 ndecap13 ndecap14 ndecap15
|
|
$frame ndecap16 ndecap17 ndecap18 ndecap19 ndecap20
|
|
|
|
//
|
|
$frame atthan1 atthan2 atthan3 atthan4 atthan5
|
|
$frame atthan6 atthan7 atthan8
|
|
|
|
//
|
|
$frame flyhan1 flyhan2 flyhan3 flyhan4 flyhan5
|
|
$frame flyhan6 flyhan7 flyhan8 flyhan9 flyhan10
|
|
$frame flyhan11 flyhan12 flyhan13 flyhan14 flyhan15
|
|
|
|
//
|
|
$frame painhan1 painhan2 painhan3 painhan4 painhan5
|
|
$frame painhan6 painhan7 painhan8
|
|
|
|
//
|
|
$frame runhan1 runhan2 runhan3 runhan4 runhan5
|
|
$frame runhan6 runhan7 runhan8 runhan9 runhan10
|
|
$frame runhan11 runhan12
|
|
|
|
//
|
|
$frame stdhan1 stdhan2 stdhan3 stdhan4 stdhan5
|
|
$frame stdhan6 stdhan7 stdhan8 stdhan9 stdhan10
|
|
$frame stdhan11 stdhan12
|
|
|
|
//
|
|
$frame attsic1 attsic2 attsic3 attsic4 attsic5
|
|
$frame attsic6 attsic7 attsic8 attsic9 attsic10
|
|
$frame attsic11 attsic12
|
|
|
|
//
|
|
$frame flysic1 flysic2 flysic3 flysic4 flysic5
|
|
$frame flysic6 flysic7 flysic8 flysic9 flysic10
|
|
$frame flysic11 flysic12 flysic13 flysic14 flysic15
|
|
|
|
//
|
|
$frame painsic1 painsic2 painsic3 painsic4 painsic5
|
|
$frame painsic6 painsic7 painsic8
|
|
|
|
//
|
|
$frame runsic1 runsic2 runsic3 runsic4 runsic5
|
|
$frame runsic6 runsic7 runsic8 runsic9 runsic10
|
|
$frame runsic11 runsic12
|
|
|
|
//
|
|
$frame stdsic1 stdsic2 stdsic3 stdsic4 stdsic5
|
|
$frame stdsic6 stdsic7 stdsic8 stdsic9 stdsic10
|
|
$frame stdsic11 stdsic12
|
|
|
|
//
|
|
$frame nattstf1 nattstf2 nattstf3 nattstf4 nattstf5
|
|
$frame nattstf6 nattstf7 nattstf8
|
|
|
|
//
|
|
$frame nflystf1 nflystf2 nflystf3 nflystf4 nflystf5
|
|
$frame nflystf6 nflystf7 nflystf8 nflystf9 nflystf10
|
|
$frame nflystf11 nflystf12 nflystf13 nflystf14 nflystf15
|
|
|
|
//
|
|
$frame npainstf1 npainstf2 npainstf3 npainstf4 npainstf5
|
|
$frame npainstf6 npainstf7 npainstf8
|
|
|
|
//
|
|
$frame nrunstf1 nrunstf2 nrunstf3 nrunstf4 nrunstf5
|
|
$frame nrunstf6 nrunstf7 nrunstf8 nrunstf9 nrunstf10
|
|
$frame nrunstf11 nrunstf12
|
|
|
|
//
|
|
$frame nstdstf1 nstdstf2 nstdstf3 nstdstf4 nstdstf5
|
|
$frame nstdstf6 nstdstf7 nstdstf8 nstdstf9 nstdstf10
|
|
$frame nstdstf11 nstdstf12
|
|
|
|
|
|
//=================================================================
|
|
$framevalue 0
|
|
|
|
//ASSASSIN
|
|
//
|
|
$frame attdag1 attdag2 attdag3 attdag4 attdag5
|
|
$frame attdag6 attdag7 attdag8 attdag9 attdag10
|
|
$frame attdag11
|
|
|
|
//
|
|
$frame aattstf1 aattstf2 aattstf3 aattstf4
|
|
|
|
//
|
|
$frame attxbw1 attxbw2 attxbw3 attxbw4
|
|
|
|
//
|
|
$frame acrouch1 acrouch2 acrouch3 acrouch4 acrouch5
|
|
$frame acrouch6 acrouch7 acrouch8 acrouch9 acrouch10
|
|
$frame acrouch11 acrouch12 acrouch13 acrouch14 acrouch15
|
|
$frame acrouch16 acrouch17 acrouch18 acrouch19 acrouch20
|
|
|
|
//
|
|
$frame adeath1 adeath2 adeath3 adeath4 adeath5
|
|
$frame adeath6 adeath7 adeath8 adeath9 adeath10
|
|
$frame adeath11 adeath12 adeath13 adeath14 adeath15
|
|
$frame adeath16 adeath17 adeath18 adeath19 adeath20
|
|
|
|
//
|
|
$frame adecap1 adecap2 adecap3 adecap4 adecap5
|
|
$frame adecap6 adecap7 adecap8 adecap9 adecap10
|
|
$frame adecap11 adecap12 adecap13 adecap14 adecap15
|
|
$frame adecap16 adecap17 adecap18 adecap19 adecap20
|
|
$frame adecap21 adecap22 adecap23 adecap24 adecap25
|
|
$frame adecap26 adecap27 adecap28
|
|
|
|
//
|
|
$frame flydag1 flydag2 flydag3 flydag4 flydag5
|
|
$frame flydag6 flydag7 flydag8 flydag9 flydag10
|
|
$frame flydag11 flydag12 flydag13 flydag14 flydag15
|
|
|
|
//
|
|
$frame aflystf1 aflystf2 aflystf3 aflystf4 aflystf5
|
|
$frame aflystf6 aflystf7 aflystf8 aflystf9 aflystf10
|
|
$frame aflystf11 aflystf12 aflystf13 aflystf14 aflystf15
|
|
|
|
//
|
|
$frame flyxbw1 flyxbw2 flyxbw3 flyxbw4 flyxbw5
|
|
$frame flyxbw6 flyxbw7 flyxbw8 flyxbw9 flyxbw10
|
|
$frame flyxbw11 flyxbw12 flyxbw13 flyxbw14 flyxbw15
|
|
|
|
//
|
|
$frame ajump1 ajump2 ajump3 ajump4 ajump5
|
|
$frame ajump6 ajump7 ajump8 ajump9 ajump10
|
|
$frame ajump11 ajump12
|
|
|
|
//
|
|
$frame paindag1 paindag2 paindag3 paindag4 paindag5
|
|
$frame paindag6 paindag7
|
|
|
|
//
|
|
$frame apainstf1 apainstf2 apainstf3 apainstf4 apainstf5
|
|
$frame apainstf6 apainstf7
|
|
|
|
//
|
|
$frame painxbw1 painxbw2 painxbw3 painxbw4 painxbw5
|
|
$frame painxbw6 painxbw7
|
|
|
|
//
|
|
$frame rundag1 rundag2 rundag3 rundag4 rundag5
|
|
$frame rundag6 rundag7 rundag8 rundag9 rundag10
|
|
$frame rundag11 rundag12
|
|
|
|
//
|
|
$frame arunstf1 arunstf2 arunstf3 arunstf4 arunstf5
|
|
$frame arunstf6 arunstf7 arunstf8 arunstf9 arunstf10
|
|
$frame arunstf11 arunstf12
|
|
|
|
//
|
|
$frame runxbw1 runxbw2 runxbw3 runxbw4 runxbw5
|
|
$frame runxbw6 runxbw7 runxbw8 runxbw9 runxbw10
|
|
$frame runxbw11 runxbw12
|
|
|
|
//
|
|
$frame stddag1 stddag2 stddag3 stddag4 stddag5
|
|
$frame stddag6 stddag7 stddag8 stddag9 stddag10
|
|
$frame stddag11 stddag12 stddag13
|
|
|
|
//
|
|
$frame astdstf1 astdstf2 astdstf3 astdstf4 astdstf5
|
|
$frame astdstf6 astdstf7 astdstf8 astdstf9 astdstf10
|
|
$frame astdstf11 astdstf12 astdstf13
|
|
|
|
//
|
|
$frame stdxbw1 stdxbw2 stdxbw3 stdxbw4 stdxbw5
|
|
$frame stdxbw6 stdxbw7 stdxbw8 stdxbw9 stdxbw10
|
|
$frame stdxbw11 stdxbw12 stdxbw13
|
|
|
|
|
|
//=================================================================
|
|
$framevalue 0
|
|
|
|
//SUCCUBUS
|
|
//
|
|
//
|
|
$frame runwpa1 runwpa2 runwpa3 runwpa4 runwpa5
|
|
$frame runwpa6 runwpa7 runwpa8 runwpa9 runwpa10
|
|
$frame runwpa11 runwpa12
|
|
|
|
//
|
|
$frame runwpbc1 runwpbc2 runwpbc3 runwpbc4 runwpbc5
|
|
$frame runwpbc6 runwpbc7 runwpbc8 runwpbc9 runwpbc10
|
|
$frame runwpbc11 runwpbc12
|
|
|
|
//
|
|
$frame runwpd1 runwpd2 runwpd3 runwpd4 runwpd5
|
|
$frame runwpd6 runwpd7 runwpd8 runwpd9 runwpd10
|
|
$frame runwpd11 runwpd12
|
|
|
|
//
|
|
$frame wtwpa1 wtwpa2 wtwpa3 wtwpa4 wtwpa5
|
|
$frame wtwpa6 wtwpa7 wtwpa8 wtwpa9 wtwpa10
|
|
$frame wtwpa11 wtwpa12 wtwpa13
|
|
|
|
//
|
|
$frame wtwpbc1 wtwpbc2 wtwpbc3 wtwpbc4 wtwpbc5
|
|
$frame wtwpbc6 wtwpbc7 wtwpbc8 wtwpbc9 wtwpbc10
|
|
$frame wtwpbc11 wtwpbc12 wtwpbc13
|
|
|
|
//
|
|
$frame wtwpd1 wtwpd2 wtwpd3 wtwpd4 wtwpd5
|
|
$frame wtwpd6 wtwpd7 wtwpd8 wtwpd9 wtwpd10
|
|
$frame wtwpd11 wtwpd12 wtwpd13
|
|
|
|
//
|
|
$frame atwpa1 atwpa2 atwpa3 atwpa4 atwpa5
|
|
$frame atwpa6 atwpa7 atwpa8
|
|
|
|
//
|
|
$frame atwpbc1 atwpbc2 atwpbc3 atwpbc4
|
|
$frame atwpbc5 atwpbc6 atwpbc7 atwpbc8
|
|
|
|
//
|
|
$frame atwpd1 atwpd2 atwpd3 atwpd4
|
|
$frame atwpd5 atwpd6 atwpd7 atwpd8
|
|
|
|
//
|
|
$frame pnwpa1 pnwpa2 pnwpa3 pnwpa4 pnwpa5
|
|
$frame pnwpa6 pnwpa7
|
|
|
|
//
|
|
$frame pnwpbc1 pnwpbc2 pnwpbc3 pnwpbc4 pnwpbc5
|
|
$frame pnwpbc6 pnwpbc7
|
|
|
|
//
|
|
$frame pnwpd1 pnwpd2 pnwpd3 pnwpd4 pnwpd5
|
|
$frame pnwpd6 pnwpd7
|
|
|
|
//
|
|
$frame swmwpa1 swmwpa2 swmwpa3 swmwpa4 swmwpa5
|
|
$frame swmwpa6 swmwpa7 swmwpa8 swmwpa9 swmwpa10
|
|
$frame swmwpa11 swmwpa12 swmwpa13 swmwpa14 swmwpa15
|
|
|
|
//
|
|
$frame swmwpbc1 swmwpbc2 swmwpbc3 swmwpbc4 swmwpbc5
|
|
$frame swmwpbc6 swmwpbc7 swmwpbc8 swmwpbc9 swmwpbc10
|
|
$frame swmwpbc11 swmwpbc12 swmwpbc13 swmwpbc14 swmwpbc15
|
|
|
|
//
|
|
$frame swmwpd1 swmwpd2 swmwpd3 swmwpd4 swmwpd5
|
|
$frame swmwpd6 swmwpd7 swmwpd8 swmwpd9 swmwpd10
|
|
$frame swmwpd11 swmwpd12 swmwpd13 swmwpd14 swmwpd15
|
|
|
|
//
|
|
$frame djump1 djump2 djump3 djump4 djump5
|
|
$frame djump6 djump7 djump8 djump9 djump10
|
|
$frame djump11 djump12 djump13 djump14 djump15
|
|
|
|
//
|
|
$frame dcrouch1 dcrouch2 dcrouch3 dcrouch4 dcrouch5
|
|
$frame dcrouch6 dcrouch7 dcrouch8 dcrouch9 dcrouch10
|
|
$frame dcrouch11 dcrouch12 dcrouch13 dcrouch14 dcrouch15
|
|
$frame dcrouch16 dcrouch17 dcrouch18 dcrouch19 dcrouch20
|
|
|
|
//
|
|
$frame ddeath1 ddeath2 ddeath3 ddeath4 ddeath5
|
|
$frame ddeath6 ddeath7 ddeath8 ddeath9 ddeath10
|
|
$frame ddeath11 ddeath12 ddeath13 ddeath14 ddeath15
|
|
$frame ddeath16 ddeath17 ddeath18 ddeath19 ddeath20
|
|
|
|
//
|
|
$frame ddecap1 ddecap2 ddecap3 ddecap4 ddecap5
|
|
$frame ddecap6 ddecap7 ddecap8 ddecap9 ddecap10
|
|
$frame ddecap11 ddecap12 ddecap13 ddecap14 ddecap15
|
|
$frame ddecap16 ddecap17 ddecap18 ddecap19 ddecap20
|
|
$frame ddecap21 ddecap22 ddecap23 ddecap24 ddecap25
|
|
$frame ddecap26 ddecap27 ddecap28
|
|
|
|
//=================================================================
|
|
$framevalue 0
|
|
|
|
//Dwarf
|
|
//
|
|
//
|
|
$frame axestd1 axestd2 axestd3 axestd4 axestd5
|
|
$frame axestd6 axestd7 axestd8 axestd9 axestd10
|
|
$frame axestd11 axestd12 axestd13 axestd14 axestd15
|
|
$frame axestd16 axestd17 axestd18 axestd19 axestd20
|
|
$frame axestd21 axestd22 axestd23 axestd24
|
|
|
|
//
|
|
$frame hmrstd1 hmrstd2 hmrstd3 hmrstd4 hmrstd5
|
|
$frame hmrstd6 hmrstd7 hmrstd8 hmrstd9 hmrstd10
|
|
$frame hmrstd11 hmrstd12 hmrstd13 hmrstd14 hmrstd15
|
|
$frame hmrstd16 hmrstd17 hmrstd18 hmrstd19 hmrstd20
|
|
$frame hmrstd21 hmrstd22 hmrstd23 hmrstd24
|
|
|
|
//
|
|
$frame axerun1 axerun2 axerun3 axerun4 axerun5
|
|
$frame axerun6 axerun7 axerun8 axerun9 axerun10
|
|
$frame axerun11 axerun12
|
|
|
|
//
|
|
$frame hmrrun1 hmrrun2 hmrrun3 hmrrun4 hmrrun5
|
|
$frame hmrrun6 hmrrun7 hmrrun8 hmrrun9 hmrrun10
|
|
$frame hmrrun11 hmrrun12
|
|
|
|
//
|
|
$frame axehit1 axehit2 axehit3 axehit4 axehit5
|
|
$frame axehit6 axehit7 axehit8 axehit9 axehit10
|
|
$frame axehit11 axehit12
|
|
|
|
//
|
|
$frame hmrhit1 hmrhit2 hmrhit3 hmrhit4 hmrhit5
|
|
$frame hmrhit6 hmrhit7 hmrhit8 hmrhit9 hmrhit10
|
|
$frame hmrhit11 hmrhit12
|
|
|
|
//
|
|
$frame axepain1 axepain2 axepain3 axepain4 axepain5
|
|
$frame axepain6 axepain7 axepain8
|
|
|
|
//
|
|
$frame hmrpain1 hmrpain2 hmrpain3 hmrpain4 hmrpain5
|
|
$frame hmrpain6 hmrpain7 hmrpain8
|
|
|
|
//
|
|
$frame axeswm1 axeswm2 axeswm3 axeswm4 axeswm5
|
|
$frame axeswm6 axeswm7 axeswm8 axeswm9 axeswm10
|
|
$frame axeswm11 axeswm12 axeswm13 axeswm14 axeswm15
|
|
|
|
//
|
|
$frame hmrswm1 hmrswm2 hmrswm3 hmrswm4 hmrswm5
|
|
$frame hmrswm6 hmrswm7 hmrswm8 hmrswm9 hmrswm10
|
|
$frame hmrswm11 hmrswm12 hmrswm13 hmrswm14 hmrswm15
|
|
|
|
//
|
|
$frame hdeath1 hdeath2 hdeath3 hdeath4 hdeath5
|
|
$frame hdeath6 hdeath7 hdeath8 hdeath9 hdeath10
|
|
$frame hdeath11 hdeath12 hdeath13 hdeath14 hdeath15
|
|
$frame hdeath16 hdeath17 hdeath18 hdeath19 hdeath20
|
|
|
|
//
|
|
$frame hdecap1 hdecap2 hdecap3 hdecap4 hdecap5
|
|
$frame hdecap6 hdecap7 hdecap8 hdecap9 hdecap10
|
|
$frame hdecap11 hdecap12 hdecap13 hdecap14 hdecap15
|
|
$frame hdecap16 hdecap17 hdecap18 hdecap19 hdecap20
|
|
$frame hdecap21 hdecap22 hdecap23 hdecap24
|
|
|
|
//
|
|
$frame hjump1 hjump2 hjump3 hjump4 hjump5
|
|
$frame hjump6 hjump7 hjump8 hjump9 hjump10
|
|
$frame hjump11 hjump12 hjump13
|
|
|
|
//=================================================================
|
|
$framevalue 0
|
|
|
|
//BEAST
|
|
//
|
|
$frame charge
|
|
|
|
$frame wait
|
|
|
|
$frame walk
|
|
|
|
//
|
|
$frame death01 death02 death03 death04 death05
|
|
$frame death06 death07 death08 death09 death10
|
|
$frame death11 death12 death13 death14 death15
|
|
$frame death16 death17 death18 death19 death20
|
|
$frame death21 death22 death23 death24 death25
|
|
|
|
//
|
|
$frame gorech01 gorech02 gorech03 gorech04 gorech05
|
|
$frame gorech06 gorech07 gorech08 gorech09 gorech10
|
|
$frame gorech11 gorech12
|
|
|
|
//
|
|
$frame howl01 howl02 howl03 howl04 howl05
|
|
$frame howl06 howl07 howl08 howl09 howl10
|
|
$frame howl11 howl12 howl13 howl14 howl15
|
|
$frame howl16 howl17 howl18 howl19 howl20
|
|
$frame howl21 howl22 howl23 howl24 howl25
|
|
$frame howl26 howl27 howl28 howl29 howl30
|
|
$frame howl31 howl32 howl33 howl34 howl35
|
|
$frame howl36
|
|
|
|
//
|
|
$frame jump01 jump02 jump03 jump04 jump05
|
|
$frame jump06 jump07 jump08 jump09 jump10
|
|
$frame jump11 jump12 jump13 jump14 jump15
|
|
$frame jump16 jump17 jump18 jump19 jump20
|
|
$frame jump21 jump22 jump23 jump24
|
|
|
|
//
|
|
$frame pain1 pain2 pain3 pain4 pain5
|
|
$frame pain6 pain7 pain8
|
|
|
|
//
|
|
$frame shake01 shake02 shake03 shake04 shake05
|
|
$frame shake06 shake07 shake08 shake09 shake10
|
|
$frame shake11 shake12 shake13 shake14 shake15
|
|
$frame shake16 shake17 shake18 shake19 shake20
|
|
|
|
//
|
|
$frame shard01 shard02 shard03 shard04 shard05
|
|
$frame shard06 shard07 shard08 shard09 shard10
|
|
$frame shard11 shard12 shard13 shard14 shard15
|
|
$frame shard16 shard17 shard18 shard19 shard20
|
|
$frame shard21 shard22 shard23 shard24 shard25
|
|
$frame shard26 shard27 shard28 shard29 shard30
|
|
$frame shard31 shard32
|
|
|
|
//
|
|
$frame slidel
|
|
|
|
//
|
|
$frame slider
|
|
|
|
/*
|
|
==============================
|
|
CONSTANTS: (in constants.hc)
|
|
==============================
|
|
float ACT_STAND = 0;
|
|
float ACT_RUN = 1;
|
|
float ACT_SWIM_FLY = 2;
|
|
float ACT_ATTACK = 3;
|
|
float ACT_PAIN = 4;
|
|
|
|
float ACT_JUMP = 5;//Rest of these not weapon dep. (except nec jump)
|
|
float ACT_CROUCH_STAND = 6;
|
|
float ACT_CROUCH_MOVE = 7;
|
|
float ACT_DEAD = 8;
|
|
float ACT_DECAP = 9;
|
|
|
|
//Beast
|
|
float ACT_YAK_HIT = 2;
|
|
float ACT_YAK_HOWL = 9;
|
|
*/
|
|
|
|
void Pal_Change_Weapon (void)
|
|
{
|
|
if(self.weapon==IT_WEAPON1)
|
|
self.th_missile=pal_vorpal_fire;
|
|
else if(self.weapon==IT_WEAPON2)
|
|
self.th_missile=pal_axe_fire;
|
|
else if(self.weapon==IT_WEAPON3)
|
|
self.th_missile=crossbow_fire;
|
|
}
|
|
|
|
void Dwf_Change_Weapon (void)
|
|
{
|
|
if(self.weapon==IT_WEAPON2)
|
|
self.th_missile=pal_axe_fire;
|
|
else if(self.weapon==IT_WEAPON1)
|
|
self.th_missile=Cru_Wham_Fire;
|
|
}
|
|
|
|
void Cru_Change_Weapon (void)
|
|
{
|
|
if(self.weapon==IT_WEAPON1)
|
|
self.th_missile=Cru_Wham_Fire;
|
|
else
|
|
self.th_missile=SUB_Null;
|
|
|
|
}
|
|
|
|
void Nec_Change_Weapon (void)
|
|
{
|
|
if(self.weapon==IT_WEAPON1)
|
|
self.th_missile=sickle_decide_attack;
|
|
else if(self.weapon==IT_WEAPON2)
|
|
self.th_missile=crossbow_fire;
|
|
else
|
|
self.th_missile=Nec_Mis_Attack;
|
|
}
|
|
|
|
void Ass_Change_Weapon (void)
|
|
{
|
|
if(self.weapon==IT_WEAPON2||self.weapon==IT_WEAPON3)
|
|
self.th_missile=crossbow_fire;
|
|
else if(self.weapon==IT_WEAPON4)
|
|
self.th_missile=Use_Tripwire;//grenade_throw;
|
|
else
|
|
self.th_missile=Ass_Pdgr_Fire;
|
|
}
|
|
|
|
void Suc_Change_Weapon (void)
|
|
{
|
|
if(self.weapon==IT_WEAPON2)
|
|
self.th_missile=pal_vorpal_fire;
|
|
else if(self.weapon==IT_WEAPON3)
|
|
self.th_missile=crossbow_fire;
|
|
else if(self.weapon==IT_WEAPON4)
|
|
self.th_missile=grenade_throw;
|
|
else
|
|
self.th_missile=Suc_Blrn_Fire;
|
|
}
|
|
|
|
float player_start_frames[280] =
|
|
{
|
|
//Stand
|
|
$stdswd1 ,$stdswd1 ,$stdgnt1 ,$stdgnt1 , //Paladin
|
|
$stdham1 ,$stdice1 ,$stdice1 ,$stdice1 , //Crusader
|
|
$stdsic1 ,$stdhan1 ,$stdhan1 ,$stdhan1 , //Necromancer
|
|
$stddag1 ,$stdxbw1 ,$stdxbw1 ,$stddag1 , //Assassin
|
|
$wtwpa1 ,$wtwpbc1 ,$wtwpbc1 ,$wtwpd1 , //Succubus
|
|
$hmrstd1 ,$axestd1 ,$axestd1 ,$axestd1 , //Dwarf
|
|
$wait,0,0,0, //BEAST
|
|
//Run
|
|
$runswd1,$runswd1,$rungnt1,$rungnt1, //Paladin
|
|
$runham1,$runice1,$runice1,$runice1, //Crusader
|
|
$runsic1,$runhan1,$runhan1,$runhan1, //Necromancer
|
|
$rundag1,$runxbw1,$rundag1,$rundag1, //Assassin
|
|
$runwpa1,$runwpbc1,$runwpbc1,$runwpd1, //Succubus
|
|
$hmrrun1 ,$axerun1 ,$axerun1 ,$axerun1 , //Dwarf
|
|
$walk,0,0,0, //BEAST
|
|
//Swim/fly
|
|
$flyswd1,$flyswd1,$flygnt1,$flygnt1, //Paladin
|
|
$flyham1,$flyice1,$flyice1,$flyice1, //Crusader
|
|
$flysic1,$flyhan1,$flyhan1,$flyhan1, //Necromancer
|
|
$flydag1,$flyxbw1,$flydag1,$flydag1, //Assassin
|
|
$swmwpa1,$swmwpbc1,$swmwpbc1,$swmwpd1, //Succubus
|
|
$hmrswm1 ,$axeswm1 ,$axeswm1 ,$axeswm1 , //Dwarf
|
|
$gorech01, $gorech01, $gorech01, $gorech01, //BEAST
|
|
//Attack
|
|
$attswd1,$attswd1,$attgnt1,$attgnt1, //Paladin
|
|
$attham1,$attice1,$attice1,$attice1, //Crusader
|
|
$attsic1,$atthan1,$atthan1,$atthan1, //Necromancer
|
|
$attdag1,$attxbw1,$attxbw1,$attdag1, //Assassin
|
|
$atwpa1,$atwpbc1,$atwpbc1,$atwpd1, //Succubus
|
|
$hmrhit1 ,$axehit1 ,$axehit1 ,$axehit1 , //Dwarf
|
|
$charge,0,0,0, //BEAST
|
|
//pain
|
|
$painswd1,$painswd1,$paingnt1,$paingnt1, //Paladin
|
|
$painham1,$painice1,$painice1,$painice1, //Crusader
|
|
$painsic1,$painhan1,$painhan1,$painhan1, //Necromancer
|
|
$paindag1,$painxbw1,$painxbw1,$paindag1, //Assassin
|
|
$pnwpa1,$pnwpbc1,$pnwpbc1,$pnwpd1, //Succubus
|
|
$hmrpain1 ,$axepain1 ,$axepain1 ,$axepain1 , //Dwarf
|
|
$pain1,0,0,0, //BEAST
|
|
//Jump
|
|
$pjump1,0,0,0, //Paladin
|
|
$cjump1,0,0,0, //Crusader
|
|
$runsic1,$runhan1,$runhan1,$runhan1, //Necromancer
|
|
$ajump1,0,0,0, //Assassin
|
|
$djump1,0,0,0, //Succubus
|
|
$hjump1,0,0,0, //Dwarf
|
|
$jump01,0,0,0, //BEAST
|
|
//Crouch_stand
|
|
$pcrouch1,0,0,0, //Paladin
|
|
$ccrouch1,0,0,0, //Crusader
|
|
$ncrouch1,0,0,0, //Necromancer
|
|
$acrouch1,0,0,0, //Assassin
|
|
$dcrouch1,0,0,0, //Succubus
|
|
0,0,0,0, //Dwarf
|
|
0,0,0,0, //BEAST
|
|
//Crouch_move
|
|
$pcrouch1,0,0,0, //Paladin
|
|
$ccrouch1,0,0,0, //Crusader
|
|
$ncrouch1,0,0,0, //Necromancer
|
|
$acrouch1,0,0,0, //Assassin
|
|
$dcrouch1,0,0,0, //Succubus
|
|
0,0,0,0, //Dwarf
|
|
0,0,0,0,
|
|
//dead
|
|
$pdeath1,0,0,0, //Paladin
|
|
$cdeath1,0,0,0, //Crusader
|
|
$ndeath1,0,0,0, //Necromancer
|
|
$adeath1,0,0,0, //Assassin
|
|
$ddeath1,0,0,0, //Succubus
|
|
$hdeath1,0,0,0, //Dwarf
|
|
$death01,0,0,0, //BEAST
|
|
//decap
|
|
$pdecap1,0,0,0, //Paladin
|
|
$cdecap1,0,0,0, //Crusader
|
|
$ndecap1,0,0,0, //Necromancer
|
|
$adecap1,0,0,0, //Assassin
|
|
$ddecap1,0,0,0, //Succubus
|
|
$hdecap1,0,0,0, //Dwarf
|
|
$howl01,0,0,0 //BEAST
|
|
};
|
|
|
|
float player_end_frames[280] =
|
|
{
|
|
//Stand
|
|
$stdswd13,$stdswd13,$stdgnt13,$stdgnt13, //Paladin
|
|
$stdham13,$stdice13,$stdice13,$stdice13, //Crusader
|
|
$stdsic12,$stdhan12,$stdhan12,$stdhan12, //Necromancer
|
|
$stddag13,$stdxbw13,$stdxbw13,$stddag13, //Assassin
|
|
$wtwpa13,$wtwpbc13,$wtwpbc13,$wtwpd13, //Succubus
|
|
$hmrstd24 ,$axestd24 ,$axestd24 ,$axestd24 ,//Dwarf
|
|
$wait,0,0,0, //BEAST
|
|
//Run
|
|
$runswd12,$runswd12,$rungnt12,$rungnt12, //Paladin
|
|
$runham12,$runice12,$runice12,$runice12, //Crusader
|
|
$runsic12,$runhan12,$runhan12,$runhan12, //Necromancer
|
|
$rundag12,$runxbw12,$runxbw12,$rundag12, //Assassin
|
|
$runwpa12,$runwpbc12,$runwpbc12,$runwpd12, //Succubus
|
|
$hmrrun12 ,$axerun12 ,$axerun12 ,$axerun12 ,//Dwarf
|
|
$walk,0,0,0, //BEAST
|
|
//Swim/fly
|
|
$flyswd15,$flyswd15,$flygnt15,$flygnt15, //Paladin
|
|
$flyham15,$flyice15,$flyice15,$flyice15, //Crusader
|
|
$flysic14,$flyhan14,$flyhan14,$flyhan14, //Necromancer
|
|
$flydag15,$flyxbw15,$flyxbw15,$flydag15, //Assassin
|
|
$swmwpa15,$swmwpbc15,$swmwpbc15,$swmwpd15, //Succubus
|
|
$hmrswm15 ,$axeswm15 ,$axeswm15 ,$axeswm15 ,//Dwarf
|
|
$gorech12, $gorech12, $gorech12, $gorech12, //BEAST
|
|
//Attack
|
|
$attswd12,$attswd12,$attgnt11,$attgnt11, //Paladin
|
|
$attham10,$attice4,$attice4,$attice4, //Crusader
|
|
$attsic12,$atthan8,$atthan8,$atthan8, //Necromancer
|
|
$attdag11,$attxbw4,$attxbw4,$attdag11, //Assassin
|
|
$atwpa8,$atwpbc8,$atwpbc8,$atwpd8, //Succubus
|
|
$hmrhit12 ,$axehit12 ,$axehit12 ,$axehit12 ,//Dwarf
|
|
$charge,0,0,0, //BEAST
|
|
//pain
|
|
$painswd7,$painswd7,$paingnt7,$paingnt7, //Paladin
|
|
$painham8,$painice8,$painice8,$painice8, //Crusader
|
|
$painsic8,$painhan8,$painhan8,$painhan8, //Necromancer
|
|
$paindag7,$painxbw7,$painxbw7,$paindag7, //Assassin
|
|
$pnwpa7,$pnwpbc7,$pnwpbc7,$pnwpd7, //Succubus
|
|
$hmrpain8 ,$axepain8 ,$axepain8 ,$axepain8 ,//Dwarf
|
|
$pain8,0,0,0, //BEAST
|
|
//Jump
|
|
$pjump12,0,0,0, //Paladin
|
|
$cjump13,0,0,0, //Crusader
|
|
$runsic12,$runhan12,$runhan12,$runhan12, //Necromancer
|
|
$ajump12,0,0,0, //Assassin
|
|
$djump15,0,0,0, //Succubus
|
|
$hjump13,0,0,0, //Dwarf
|
|
$jump24,0,0,0, //BEAST
|
|
//Crouch_stand
|
|
$pcrouch20,0,0,0, //Paladin
|
|
$ccrouch20,0,0,0, //Crusader
|
|
$ncrouch20,0,0,0, //Necromancer
|
|
$acrouch20,0,0,0, //Assassin
|
|
$dcrouch20,0,0,0, //Succubus
|
|
0,0,0,0, //Dwarf
|
|
0,0,0,0, //BEAST
|
|
//Crouch_move
|
|
$pcrouch20,0,0,0, //Paladin
|
|
$ccrouch20,0,0,0, //Crusader
|
|
$ncrouch20,0,0,0, //Necromancer
|
|
$acrouch20,0,0,0, //Assassin
|
|
$dcrouch20,0,0,0, //Succubus
|
|
0,0,0,0, //Dwarf
|
|
0,0,0,0, //BEAST
|
|
//dead
|
|
$pdeath20,0,0,0, //Paladin
|
|
$cdeath20,0,0,0, //Crusader
|
|
$ndeath20,0,0,0, //Necromancer
|
|
$adeath20,0,0,0, //Assassin
|
|
$ddeath20,0,0,0, //Succubus
|
|
$hdeath20,0,0,0, //Dwarf
|
|
$death25,0,0,0, //BEAST
|
|
//decap
|
|
$pdecap28,0,0,0, //Paladin
|
|
$cdecap28,0,0,0, //Crusader
|
|
$ndecap20,0,0,0, //Necromancer
|
|
$adecap28,0,0,0, //Assassin
|
|
$ddecap28,0,0,0, //Succubus
|
|
$hdecap24,0,0,0, //Dwarf
|
|
$howl36,0,0,0 //BEAST
|
|
};
|
|
|
|
void fstep_fade_out (void)
|
|
{
|
|
if(self.colormap<159+256)
|
|
{
|
|
self.colormap+=1;
|
|
thinktime self : 0.05;
|
|
}
|
|
else
|
|
remove(self);
|
|
}
|
|
|
|
void dropStep (void)
|
|
{
|
|
entity fstep,oself;
|
|
vector org;
|
|
makevectors(self.angles);
|
|
if(self.lefty)
|
|
org=self.origin-v_right*8;
|
|
else
|
|
org=self.origin+v_right*8;
|
|
|
|
traceline(org+'0 0 2',org - '0 0 16',TRUE,self);
|
|
if(trace_plane_normal=='0 0 0')
|
|
return;
|
|
|
|
fstep=spawn();
|
|
setorigin(fstep,trace_endpos+'0 0 1');
|
|
fstep.angles_y=self.angles_y;
|
|
oself=self;
|
|
self=fstep;
|
|
pitch_roll_for_slope(trace_plane_normal);
|
|
self=oself;
|
|
if(self.lefty)
|
|
{
|
|
fstep.angles_z+=180;
|
|
self.lefty=FALSE;
|
|
}
|
|
else
|
|
self.lefty=TRUE;
|
|
setmodel(fstep,"models/fstep.mdl");
|
|
fstep.drawflags(+)DRF_TRANSLUCENT;
|
|
fstep.colormap= 144+256;
|
|
particle4(trace_endpos+'0 0 8',16,fstep.colormap,PARTICLETYPE_BLUESTEP,random(5,10));
|
|
fstep.abslight = 0.5;
|
|
fstep.think=fstep_fade_out;
|
|
thinktime fstep : 0.5;
|
|
}
|
|
|
|
void player_frames ()
|
|
{
|
|
float weapmod, startframe,endframe,framestate,dot,am_beast,class_val,skip_anim;
|
|
vector move_dir;
|
|
/*
|
|
if(self.playerclass==CLASS_DWARF&&random()<0.1)
|
|
{
|
|
dprintf("Hank's actstate: %s\n",self.act_state);
|
|
dprintf("Hank's frame is: %s\n",self.frame);
|
|
}
|
|
*/
|
|
|
|
if(self.deadflag)
|
|
self.act_state=ACT_DEAD;
|
|
|
|
if(self.model=="models/yakman.mdl")
|
|
am_beast=TRUE;
|
|
|
|
if(am_beast)
|
|
{
|
|
if(self.hull!=HULL_GOLEM)
|
|
sprint(self,PRINT_HIGH,"ERROR! HULL not beast!\n");
|
|
if(self.mins!='-48 -48 -50'||self.maxs!='48 48 50')
|
|
sprint(self,PRINT_HIGH,"ERROR! Size not beast size!\n");
|
|
|
|
if(self.act_state==ACT_ATTACK)
|
|
self.hasted=2;
|
|
else
|
|
self.hasted=1;
|
|
|
|
weapmod=0;
|
|
class_val=7;
|
|
if(self.act_state==ACT_RUN)
|
|
{
|
|
self.view_ofs='0 0 72';
|
|
self.frame=$walk;
|
|
if(self.cnt>=7)
|
|
{
|
|
sound(self,CHAN_AUTO,"eidolon/stomp.wav",1,ATTN_NORM);
|
|
self.cnt=0;
|
|
}
|
|
else
|
|
self.cnt+=1;
|
|
/* if(self.t_width<time)
|
|
{
|
|
sound(self,CHAN_AUTO,"eidolon/stomp.wav",1,ATTN_NORM);
|
|
self.t_width=time+.5;
|
|
}*/
|
|
if(self.flags&FL_ONGROUND)
|
|
{
|
|
makevectors(self.v_angle);
|
|
move_dir=normalize(self.velocity);
|
|
v_right_z=0;
|
|
move_dir_z=0;
|
|
dot=v_right*move_dir;
|
|
if(dot>0.5)
|
|
self.frame=$slider;
|
|
else if(dot<-0.5)
|
|
self.frame=$slidel;
|
|
}
|
|
skip_anim=TRUE;
|
|
}
|
|
else
|
|
{
|
|
self.view_ofs='0 0 100';
|
|
if(self.act_state==ACT_STAND)
|
|
{
|
|
self.frame=$wait;
|
|
skip_anim=TRUE;
|
|
}
|
|
else if(self.act_state==ACT_ATTACK)
|
|
{
|
|
self.frame=$charge;
|
|
skip_anim=TRUE;
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if(self.catapult_time>time&&!(self.flags&FL_ONGROUND))//launched by a catapult
|
|
self.act_state=ACT_SWIM_FLY;
|
|
class_val=self.playerclass;
|
|
if(self.act_state<ACT_JUMP||(self.playerclass==CLASS_NECROMANCER&&self.act_state<=ACT_JUMP))
|
|
{
|
|
switch(self.weapon)
|
|
{
|
|
case IT_WEAPON4:
|
|
weapmod=3;
|
|
break;
|
|
case IT_WEAPON3:
|
|
weapmod=2;
|
|
break;
|
|
case IT_WEAPON2:
|
|
weapmod=1;
|
|
break;
|
|
case IT_WEAPON1:
|
|
weapmod=0;
|
|
break;
|
|
default:
|
|
if(self.playerclass==CLASS_SUCCUBUS)
|
|
weapmod=0;
|
|
else
|
|
weapmod=4;
|
|
break;
|
|
}
|
|
}
|
|
else
|
|
weapmod=0;
|
|
}
|
|
|
|
if(!skip_anim)
|
|
{
|
|
startframe = player_start_frames [(class_val - 1) * 4 + self.act_state*28 + weapmod];
|
|
|
|
if(self.waterlevel<3&&self.movetype==MOVETYPE_FLY&&class_val!=CLASS_DWARF)
|
|
{
|
|
if(class_val==CLASS_SUCCUBUS)
|
|
startframe+=10;
|
|
endframe=startframe;
|
|
}
|
|
else
|
|
endframe = player_end_frames [(class_val - 1) * 4 + self.act_state*28 + weapmod];
|
|
|
|
if(self.act_state!=ACT_CROUCH_STAND)
|
|
framestate=AdvanceFrame(startframe,endframe);
|
|
}
|
|
|
|
self.think=player_frames;
|
|
// if(self.playerclass==CLASS_SUCCUBUS)
|
|
// thinktime self : 0.075;
|
|
// else
|
|
thinktime self : HX_FRAME_TIME;
|
|
|
|
if(self.flags&FL_ONGROUND)
|
|
if(self.velocity_x!=0||self.velocity_y!=0)//FIXME: Only leave prints of running, not walking?
|
|
if (self.artifact_active & ART_INVISIBILITY)
|
|
if(random()>0.5)
|
|
dropStep();
|
|
|
|
|
|
if(self.act_state!=ACT_DEAD)
|
|
if((self.viewentity==self||self.viewentity.classname=="chasecam")&&self.camera_time<time)
|
|
self.th_weapon();
|
|
|
|
if(self.act_state==ACT_SWIM_FLY)
|
|
{
|
|
if(am_beast)
|
|
{
|
|
if(framestate==AF_END)
|
|
self.act_state=ACT_RUN;
|
|
}
|
|
else
|
|
{
|
|
if(self.movetype!=MOVETYPE_FLY)
|
|
if (self.velocity_x || self.velocity_y)
|
|
self.act_state=ACT_RUN;
|
|
else
|
|
self.act_state=ACT_STAND;
|
|
}
|
|
}
|
|
else if(self.act_state==ACT_STAND)
|
|
{
|
|
if(self.hull==HULL_CROUCH&&self.playerclass!=CLASS_DWARF)
|
|
self.act_state=ACT_CROUCH_STAND;
|
|
else if (self.velocity_x || self.velocity_y)
|
|
self.act_state=ACT_RUN;
|
|
}
|
|
else if(self.act_state==ACT_RUN)
|
|
{
|
|
if(self.hull==HULL_CROUCH&&self.playerclass!=CLASS_DWARF)
|
|
self.act_state=ACT_CROUCH_MOVE;
|
|
else if (!self.velocity_x && !self.velocity_y)
|
|
self.act_state=ACT_STAND;
|
|
}
|
|
else if(self.act_state==ACT_CROUCH_STAND)
|
|
{//NOTE: all 3 have 20 crouch frames
|
|
if(self.hull==HULL_PLAYER)
|
|
self.act_state=ACT_STAND;
|
|
else if(self.frame>endframe || self.frame<startframe)
|
|
self.frame=startframe;
|
|
else if (self.velocity_x || self.velocity_y)
|
|
self.act_state=ACT_CROUCH_MOVE;
|
|
}
|
|
else if(self.act_state==ACT_CROUCH_MOVE)
|
|
{
|
|
if(self.hull==HULL_PLAYER)
|
|
self.act_state=ACT_RUN;
|
|
else if (!self.velocity_x && !self.velocity_y)
|
|
self.act_state=ACT_CROUCH_STAND;
|
|
}
|
|
else if(self.act_state==ACT_ATTACK||self.act_state==ACT_JUMP||self.act_state==ACT_PAIN)
|
|
{
|
|
// if(self.act_state==ACT_PAIN&&self.frame==startframe)
|
|
// PainSound();
|
|
if(self.playerclass==CLASS_SUCCUBUS)
|
|
if (!(self.flags & FL_ONGROUND))
|
|
if(self.button2)
|
|
if(self.gravity==0.2)
|
|
if(self.frame>$djump9)
|
|
self.frame=$djump9;
|
|
|
|
if(framestate==AF_END&&!self.button0)
|
|
{
|
|
if(!self.velocity_x && !self.velocity_y)
|
|
self.act_state=ACT_STAND;
|
|
else
|
|
self.act_state=ACT_RUN;
|
|
}
|
|
}
|
|
else if(self.act_state==ACT_YAK_HOWL&&am_beast)
|
|
{
|
|
if(framestate==AF_END)
|
|
self.act_state=ACT_STAND;
|
|
}
|
|
|
|
if(self.act_state==ACT_DEAD)
|
|
{
|
|
if(self.frame==startframe&&!deathmatch)
|
|
if(self.enemy.flags2&FL_ALIVE&&visible(self.enemy))
|
|
self.pausetime=time+3;
|
|
|
|
if(self.view_ofs_z - 2.5 >= 8)//Drop view
|
|
self.view_ofs_z-=2.5;
|
|
|
|
if(framestate==AF_END)
|
|
{
|
|
self.view_ofs='0 0 8';
|
|
self.think=PlayerDead;
|
|
thinktime self : 0;
|
|
}
|
|
}
|
|
else if(self.waterlevel>2||self.movetype==MOVETYPE_FLY)//overrides all others
|
|
if(!am_beast)
|
|
self.act_state=ACT_SWIM_FLY;
|
|
}
|
|
|
|
void player_frames_behead ()
|
|
{//Note: give playerclass!
|
|
self.level=player_start_frames[ACT_DECAP * 28 + (self.playerclass - 1) * 4];
|
|
self.dmg=player_end_frames[ACT_DECAP * 28 + (self.playerclass - 1) * 4];
|
|
self.cnt=0;
|
|
player_behead();
|
|
}
|
|
|