damage from cascade weapons

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

damage from cascade weapons

Post by Commander McLane »

Following my problems with immunizing entities against cascade weapons with

Code: Select all

this.shipTakingDamage = function(amount, whom, type)
{
    if(type === "cascade weapon" || amount === 1000)
        this.ship.energy = this.ship.maxEnergy;
}
I got curious about the amount of damage dealt by the cascading explosion. So I change the above code to simply log amount, with interesting results. While the overall tendency seems to be to start with a value close to 1000 and then to decrease from there, there is also some very erratic behaviour going on. In this example it starts rather in the middle of the logged values (apologies for the long listing). There is even one lone 18317.56640625 somewhere.

Code: Select all

960.1472778320312
968.4105834960938
965.8284912109375
962.58154296875
966.185791015625
968.5363159179688
971.2622680664062
958.5675659179688
963.228759765625
970.0010375976562
956.9332885742188
965.8258666992188
959.2162475585938
968.5784301757812
951.1068115234375
964.2160034179688
953.3893432617188
967.8211669921875
958.4462890625
966.8134765625
951.5018920898438
954.7974853515625
967.4678955078125
956.6692504882812
950.2972412109375
950.9928588867188
963.2589721679688
961.0830078125
947.7407836914062
955.0260620117188
953.6264038085938
953.0745849609375
953.6757202148438
952.8449096679688
955.4414672851562
948.8981323242188
957.6785278320312
944.4810791015625
950.4021606445312
970.37353515625
931.174072265625
945.8283081054688
947.9417724609375
951.4752807617188
947.5099487304688
947.3536987304688
946.0462036132812
954.7710571289062
939.0003662109375
952.8259887695312
938.5742797851562
950.8831787109375
937.590576171875
950.63525390625
936.41015625
949.6331787109375
942.5853881835938
935.356201171875
939.9886474609375
959.8631591796875
921.9736938476562
941.089111328125
940.0728149414062
938.3131103515625
938.9824829101562
938.5379638671875
944.5582275390625
930.1339111328125
937.5619506835938
936.9216918945312
934.6030883789062
933.218017578125
935.3890380859375
938.2021484375
933.8358154296875
939.5394897460938
934.424072265625
926.6029663085938
931.1978759765625
950.49462890625
914.7339477539062
927.797119140625
934.1426391601562
928.019775390625
937.974853515625
922.7506713867188
920.8239135742188
935.9689331054688
933.3776245117188
923.9317016601562
925.7994384765625
921.927978515625
931.7568359375
917.9711303710938
932.423583984375
924.5724487304688
929.8501586914062
919.1455688476562
919.7125244140625
916.7805786132812
932.7435913085938
922.977294921875
917.8316040039062
929.26220703125
912.5119018554688
923.8475341796875
919.2509765625
918.8070678710938
919.55126953125
919.5603637695312
918.0045166015625
913.4270629882812
920.685791015625
924.2630004882812
905.5784301757812
918.4138793945312
922.4441528320312
908.3601684570312
919.9842529296875
909.389404296875
912.5906982421875
909.5902099609375
917.3543090820312
916.9920654296875
906.5967407226562
910.7125854492188
917.6380004882812
911.171630859375
903.2665405273438
906.5457763671875
911.1030883789062
916.2755126953125
907.5614013671875
907.7447509765625
896.5059204101562
911.3828735351562
906.1224975585938
906.3150024414062
912.014404296875
893.7379150390625
911.201904296875
900.985107421875
906.6757202148438
911.9159545898438
893.6817016601562
902.0784912109375
899.0120239257812
903.3446044921875
896.85400390625
913.9623413085938
891.9049682617188
899.111328125
906.0277099609375
899.0172729492188
892.096923828125
883.4906005859375
917.5863037109375
890.9381103515625
896.139404296875
915.03515625
877.2391357421875
892.107421875
898.4511108398438
897.4699096679688
889.0560913085938
894.24169921875
892.45556640625
898.0670776367188
885.3093872070312
892.8810424804688
890.8317260742188
889.936279296875
888.0657348632812
899.5284423828125
882.3640747070312
885.4741821289062
898.163818359375
881.7337036132812
887.1430053710938
962.3170776367188
818.1488647460938
877.4649658203125
889.3285522460938
888.8748168945312
880.108642578125
884.1731567382812
883.6338500976562
889.89453125
875.224365234375
890.3135986328125
874.600341796875
878.3861083984375
885.168212890625
887.34814453125
874.5777587890625
879.6688232421875
874.7396850585938
882.9918823242188
878.8480224609375
884.015625
871.8065185546875
874.1686401367188
879.853271484375
875.80859375
882.1886596679688
869.3104858398438
870.3521728515625
877.7678833007812
874.6121826171875
886.9061279296875
860.435546875
868.5504760742188
876.1221313476562
871.399169921875
881.57470703125
860.48681640625
870.3973999023438
876.55517578125
862.6305541992188
883.0311279296875
868.67822265625
860.8530883789062
862.5765380859375
872.0153198242188
864.7183227539062
862.4486083984375
865.8972778320312
872.1961669921875
859.3717041015625
870.4232788085938
856.8405151367188
869.6054077148438
859.7437744140625
868.3534545898438
859.1031494140625
857.4550170898438
857.1788940429688
862.4110717773438
864.973876953125
856.2650146484375
864.23779296875
853.0499877929688
863.1597900390625
864.2542114257812
857.9672241210938
851.173583984375
854.1553344726562
858.8461303710938
860.4486694335938
841.9462280273438
864.8466796875
861.1380615234375
848.218994140625
860.0631103515625
843.2278442382812
855.9169921875
846.0084228515625
858.33984375
851.0704956054688
852.6641845703125
848.3866577148438
848.5315551757812
858.7891235351562
848.646240234375
850.23974609375
825.958984375
863.9219360351562
846.5980224609375
847.0823364257812
837.917724609375
853.460205078125
845.1383666992188
846.3807373046875
830.9881591796875
865.061767578125
843.1694946289062
838.3339233398438
828.2877807617188
860.6927490234375
843.2230834960938
829.2300415039062
833.2479248046875
855.7493286132812
841.337646484375
839.0404052734375
825.590576171875
838.2340087890625
851.6954345703125
839.7540893554688
828.170654296875
836.6870727539062
844.6757202148438
836.6153564453125
821.2135620117188
850.1680908203125
827.5853271484375
841.5731811523438
831.9494018554688
822.5836791992188
851.2069091796875
824.1914672851562
819.090576171875
848.8284912109375
837.2279663085938
829.7980346679688
809.0975952148438
851.5540771484375
819.1654052734375
826.845458984375
819.3591918945312
834.641357421875
831.3738403320312
831.8314208984375
821.2109985351562
838.1923217773438
819.2410278320312
832.00048828125
820.4073486328125
824.004638671875
829.5637817382812
817.3374633789062
820.51318359375
825.9864501953125
821.3448486328125
821.4686279296875
821.7578125
826.7208251953125
815.6095581054688
823.7671508789062
825.8516845703125
813.1130981445312
808.256103515625
820.977783203125
820.364013671875
817.7882690429688
821.7463989257812
810.6838989257812
819.7769775390625
3870.7021484375
1013.7911376953125
805.0751953125
818.841796875
808.082763671875
809.2562866210938
813.2679443359375
811.0337524414062
818.7581176757812
796.2083740234375
813.6477661132812
808.6688232421875
809.10498046875
804.2120971679688
815.9493408203125
801.3809814453125
803.7573852539062
808.059326171875
800.2021484375
802.4154052734375
798.9100341796875
819.6092529296875
803.2352294921875
794.1094360351562
811.7303466796875
802.5272827148438
801.914794921875
809.4006958007812
790.1203002929688
803.8529052734375
826.1844482421875
773.19482421875
788.9923706054688
810.5921020507812
789.53955078125
848.7490844726562
741.8397827148438
813.9373779296875
798.1074829101562
1581.214599609375
799.5406494140625
1588.3802490234375
794.846923828125
780.3623657226562
804.7327880859375
793.816650390625
784.0223388671875
798.3753051757812
787.8738403320312
795.4119873046875
776.318115234375
801.9320068359375
798.3927612304688
773.3289794921875
782.8265380859375
795.30224609375
791.8505249023438
785.2623901367188
784.7301635742188
792.6944580078125
785.3278198242188
787.385986328125
775.3238525390625
779.6699829101562
798.8921508789062
780.6461181640625
775.744384765625
785.5411987304688
806.98291015625
762.3573608398438
768.0219116210938
799.6641845703125
774.9349365234375
769.422119140625
787.1357421875
778.1146850585938
782.0997924804688
777.9142456054688
779.3268432617188
776.1617431640625
777.4158325195312
776.502685546875
766.7437133789062
779.5619506835938
777.9390258789062
775.478515625
776.4154663085938
768.0037841796875
769.4119262695312
1539.588623046875
790.1341552734375
1528.8726806640625
770.2705688476562
778.1327514648438
770.0538940429688
769.0718383789062
769.308837890625
765.9429321289062
770.5587158203125
766.34814453125
767.4342651367188
761.9248657226562
769.0592651367188
766.161376953125
757.8304443359375
770.9172973632812
764.8059692382812
764.89208984375
760.3984985351562
765.5140991210938
762.0135498046875
757.9873657226562
751.9851684570312
774.4407348632812
760.9758911132812
759.9956665039062
746.937744140625
771.7763671875
758.7953491210938
758.2685546875
759.8682861328125
755.1701049804688
1513.62255859375
754.8115844726562
758.2162475585938
754.66357421875
751.57958984375
756.5567626953125
759.5753173828125
748.1185913085938
751.594970703125
748.5108642578125
761.142333984375
744.9083251953125
743.0389404296875
762.4804077148438
754.6690063476562
749.1934814453125
744.77587890625
748.9708862304688
749.4927368164062
740.072021484375
754.5715942382812
738.9552001953125
747.250244140625
757.6096801757812
742.2376098632812
749.5433959960938
739.0342407226562
745.5884399414062
732.2720947265625
18317.56640625
936.5362548828125
755.80859375
1436.6343994140625
1454.578857421875
992.1697387695312
1353.138427734375
1302.7420654296875
1446.703369140625
732.2333374023438
1450.53759765625
1443.890380859375
730.5424194335938
1439.1748046875
1439.5550537109375
727.7725830078125
1441.4720458984375
729.1414184570312
1428.6317138671875
1439.8458251953125
1426.4305419921875
730.9061889648438
1432.6080322265625
1420.44970703125
720.5360717773438
1428.1915283203125
1420.4049072265625
719.1268310546875
1423.475341796875
1414.2183837890625
712.5238647460938
1424.5853271484375
1410.595703125
721.4518432617188
1409.3115234375
1407.5294189453125
716.82861328125
1403.771240234375
1404.104736328125
711.8696899414062
1407.2325439453125
1392.0357666015625
710.226318359375
1398.8138427734375
1396.7369384765625
704.4514770507812
1395.7850341796875
1394.7515869140625
702.7427978515625
1386.898193359375
1383.1005859375
707.630126953125
1382.2789306640625
1379.037109375
704.6494140625
1455.01171875
1303.1334228515625
691.1110229492188
1373.6671142578125
1382.3966064453125
693.1196899414062
1373.430419921875
1358.748779296875
700.7936401367188
1360.248779296875
1379.7799072265625
676.0126342773438
2202.019775390625
1208.111083984375
1358.5865478515625
1366.2890625
679.0252685546875
1338.981689453125
1367.7322998046875
680.7688598632812
1346.150146484375
1350.026123046875
671.6281127929688
1350.2249755859375
1352.91796875
662.5991821289062
1344.503173828125
1341.62890625
673.9797973632812
1334.647705078125
1343.8634033203125
657.6306762695312
1332.8992919921875
1332.0928955078125
674.3115234375
1324.80322265625
1328.98486328125
665.9279174804688
1322.833984375
1319.1888427734375
660.8321533203125
1315.11474609375
1321.0355224609375
667.0761108398438
1305.8314208984375
1323.6072998046875
660.1348266601562
1304.4400634765625
1305.269775390625
652.5189819335938
1306.697265625
1308.9404296875
649.6171875
1305.2532958984375
1300.00439453125
649.3919067382812
1296.267578125
1296.80517578125
1297.583251953125
650.1167602539062
1285.392333984375
643.4072875976562
1300.217041015625
1275.4429931640625
645.1522827148438
1487.292236328125
1077.84375
637.8983764648438
1284.303955078125
1275.7860107421875
1282.408203125
634.8231201171875
1273.012451171875
632.8446655273438
1278.56689453125
1264.1353759765625
1258.7437744140625
649.7119750976562
1584.852783203125
927.7440795898438
642.4227294921875
1252.525390625
638.8402709960938
1298.6787109375
1209.8172607421875
626.90283203125
1250.624755859375
1250.6474609375
1242.4210205078125
629.6871337890625
1248.513671875
1237.1995849609375
628.468994140625
1241.772216796875
1233.6580810546875
626.8779907226562
1236.46923828125
627.17578125
1226.609375
1232.0318603515625
1225.3836669921875
624.4757690429688
1225.6304931640625
615.927978515625
1227.8365478515625
1217.5328369140625
1217.6466064453125
611.5498657226562
1223.181396484375
1213.34423828125
619.0217895507812
1215.073486328125
1202.673583984375
616.2484741210938
1204.4678955078125
1211.1343994140625
608.2839965820312
1205.228271484375
1199.5819091796875
605.416259765625
1197.014892578125
1201.2791748046875
603.6904296875
1192.7073974609375
1194.73974609375
597.54443359375
1191.9237060546875
1190.121826171875
592.0867919921875
1190.927734375
1181.717041015625
711.345458984375
1068.309814453125
1184.373291015625
594.6248779296875
1177.5975341796875
1169.2757568359375
593.0106201171875
1172.22509765625
1167.567138671875
592.9072265625
1169.8995361328125
1162.850830078125
723.6275634765625
1038.178955078125
1338.0545654296875
395.0481872558594
1164.90380859375
1151.115966796875
716.6055908203125
1029.3009033203125
1152.4056396484375
581.5473022460938
1148.1544189453125
1143.666015625
710.8048706054688
1011.7223510742188
1151.268798828125
573.0084838867188
1150.0284423828125
1133.7412109375
718.1565551757812
995.5712890625
1132.1658935546875
570.8872680664062
1125.0621337890625
1141.0941162109375
714.2916870117188
980.3084106445312
1124.7244873046875
561.8004760742188
1122.8253173828125
1126.469482421875
698.2993774414062
984.3209838867188
1117.259521484375
561.221435546875
1112.27685546875
1120.278076171875
692.2498779296875
973.13427734375
1108.547119140625
1108.019775390625
553.5333862304688
1104.990234375
691.7278442382812
963.16259765625
1099.60986328125
540.980224609375
1107.2877197265625
1092.3819580078125
1094.853515625
548.3715209960938
1094.1656494140625
1090.12646484375
544.1492919921875
1087.1024169921875
738.81103515625
889.0386962890625
1082.492919921875
1084.629638671875
540.244140625
1077.3968505859375
1067.37548828125
547.4576416015625
1069.5745849609375
1066.560546875
540.93798828125
1068.94091796875
1063.7342529296875
536.3201904296875
1069.5460205078125
1163.8968505859375
431.20379638671875
1053.8995361328125
1058.780517578125
528.4093017578125
1055.9222412109375
1048.330078125
532.4800415039062
1050.3690185546875
1050.298095703125
523.7023315429688
1046.1873779296875
1038.650634765625
532.8815307617188
1042.305419921875
1034.9459228515625
524.8197021484375
1036.4034423828125
1027.5782470703125
526.9459838867188
1028.6600341796875
1027.23779296875
516.8299560546875
1030.1502685546875
1027.77978515625
517.5906982421875
1020.6710815429688
1016.8455810546875
519.6614379882812
1015.8831787109375
1012.8761596679688
512.2909545898438
1015.4613647460938
1009.159423828125
513.2619018554688
1008.5853271484375
1015.9044189453125
500.84967041015625
1003.0344848632812
1000.3433837890625
509.95263671875
1001.0972900390625
998.897705078125
496.3807067871094
997.254638671875
992.1260375976562
500.460205078125
991.7116088867188
988.977783203125
497.7000427246094
988.8446044921875
985.862548828125
493.070068359375
983.1641845703125
982.9811401367188
485.2330017089844
987.273193359375
974.1773071289062
492.4708251953125
970.1707153320312
972.4156494140625
490.20184326171875
962.3506469726562
973.6776123046875
485.0789794921875
962.080078125
965.1073608398438
967.42919921875
472.5064697265625
964.7677612304688
479.942626953125
948.8170166015625
961.4356689453125
474.1165771484375
952.5328369140625
946.60693359375
478.2889099121094
952.0982666015625
941.4076538085938
464.595703125
947.0283203125
941.7833251953125
469.0090637207031
941.2867431640625
938.8217163085938
463.39532470703125
941.5282592773438
929.5580444335938
459.4451599121094
935.51123046875
929.1043090820312
463.4786071777344
923.536376953125
922.2947998046875
455.42242431640625
928.757568359375
917.0185546875
462.7823791503906
913.4535522460938
915.632080078125
448.3300476074219
920.3124389648438
909.6695556640625
907.2814331054688
453.8491516113281
906.1681518554688
903.0534057617188
455.02362060546875
891.9003295898438
904.5812377929688
450.6451721191406
894.8283081054688
889.687255859375
454.1496276855469
889.2225952148438
886.8984985351562
445.6880187988281
889.8362426757812
880.9122924804688
446.7941589355469
882.3229370117188
876.4346923828125
452.6556091308594
870.7101440429688
871.566650390625
443.0342102050781
873.9833984375
866.699951171875
443.8904724121094
906.1687622070312
822.7097778320312
440.68902587890625
864.5447998046875
854.2628784179688
850.9087524414062
440.0341491699219
862.46484375
427.4602355957031
860.385986328125
849.5781860351562
430.6719970703125
851.0125732421875
847.0108642578125
426.0671691894531
848.163818359375
841.8472290039062
423.5567932128906
844.9603271484375
837.5299072265625
420.58544921875
839.3169555664062
835.551513671875
420.3707275390625
828.77392578125
838.8584594726562
413.5793151855469
825.122314453125
828.2500610351562
411.91888427734375
823.0381469726562
821.2415771484375
412.47271728515625
821.0806274414062
815.6044311523438
411.88446044921875
813.926513671875
814.8133544921875
404.9848327636719
811.82470703125
809.2529907226562
807.212158203125
403.2953186035156
804.8325805664062
407.3248596191406
796.0767211914062
799.8909912109375
399.5753173828125
798.02880859375
800.2328491210938
392.3988952636719
792.5737915039062
790.8527221679688
391.8787841796875
791.9375
784.7068481445312
395.6522216796875
784.1226196289062
780.9168701171875
389.1702880859375
786.5455932617188
771.6408081054688
386.075439453125
775.3988647460938
774.4030151367188
387.2337951660156
767.2741088867188
770.5477905273438
379.3783874511719
770.9046020507812
763.5175170898438
378.6787414550781
1053.4058837890625
467.65997314453125
381.2611999511719
755.7579956054688
756.4863891601562
371.312744140625
756.3796997070312
752.277587890625
371.1568603515625
752.1885375976562
745.751953125
374.9947814941406
738.1527709960938
743.886962890625
369.9948425292969
738.0413208007812
735.8397827148438
367.96881103515625
738.2409057617188
731.635009765625
370.611572265625
725.4334106445312
728.1592407226562
367.82293701171875
716.7277221679688
726.7364501953125
723.5516967773438
359.99224853515625
718.2230224609375
718.0391235351562
357.7796630859375
714.4791259765625
358.32220458984375
710.7452392578125
709.2357177734375
705.3176879882812
357.4602355957031
707.8700561523438
701.006103515625
354.1275329589844
695.9035034179688
698.4201049804688
355.038330078125
694.0767822265625
354.4935302734375
687.4320678710938
691.8408203125
349.302001953125
709.0025024414062
664.138671875
346.4105224609375
680.539794921875
686.5262451171875
336.50750732421875
712.2119140625
648.659423828125
334.8658447265625
680.2438354492188
673.7804565429688
672.24951171875
338.5240783691406
666.4374389648438
665.7537841796875
338.6217346191406
662.456298828125
659.2468872070312
335.2150573730469
851.4034423828125
465.9045715332031
332.96588134765625
653.4921264648438
654.5762939453125
329.2526550292969
648.8441772460938
650.7880249023438
325.81536865234375
644.3656005859375
644.252685546875
323.78521728515625
641.2991943359375
643.53173828125
320.9444580078125
635.2744140625
638.438232421875
315.958251953125
635.9799194335938
625.2520141601562
319.0209655761719
627.8897094726562
626.7824096679688
314.3659362792969
625.361083984375
622.375732421875
313.1283874511719
617.9713134765625
618.9281616210938
313.01800537109375
610.8402709960938
611.8818359375
309.7620849609375
609.4598999023438
607.8810424804688
301.2594909667969
610.7960205078125
603.3013916015625
302.6197509765625
604.2415771484375
598.83642578125
294.8869323730469
602.1500244140625
596.164306640625
292.2865905761719
595.5172729492188
593.5846557617188
290.1637878417969
592.319580078125
588.4482421875
583.7804565429688
290.5392150878906
583.1250610351562
290.0101013183594
579.3528442382812
580.0875244140625
287.50201416015625
574.5926513671875
574.5088500976562
280.8892517089844
575.0004272460938
569.8573608398438
287.666015625
562.7914428710938
563.233154296875
277.5122375488281
570.686767578125
693.3660278320312
418.380615234375
278.8323974609375
556.5239868164062
279.332275390625
552.2095947265625
548.8739013671875
270.4226379394531
551.393798828125
549.5443115234375
542.3517456054688
271.6648864746094
540.9375
541.0000610351562
268.52703857421875
537.4376220703125
536.1962280273438
267.3002014160156
535.8792114257812
527.2847900390625
265.3945617675781
527.983154296875
523.9567260742188
267.0012512207031
522.3339233398438
519.2152099609375
261.4906311035156
520.392333984375
515.7720336914062
262.5063781738281
514.5869140625
508.56982421875
258.6099548339844
511.23760986328125
506.51934814453125
254.86363220214844
505.0162048339844
502.64361572265625
252.8331756591797
501.2235107421875
495.94122314453125
253.510498046875
495.60888671875
494.0377197265625
248.92567443847656
492.3694763183594
488.2734069824219
246.95135498046875
486.7021179199219
484.42498779296875
246.7640838623047
481.5082702636719
477.39385986328125
246.01296997070312
478.716064453125
475.03997802734375
240.1393280029297
473.9565734863281
470.1346130371094
238.43406677246094
467.82025146484375
466.6893005371094
236.01939392089844
464.3385314941406
461.7834167480469
234.90110778808594
458.69573974609375
522.3636474609375
163.5015411376953
457.7080383300781
455.3083190917969
450.7967224121094
227.6332550048828
449.6989440917969
224.7471923828125
508.8155212402344
384.7944641113281
222.95791625976562
440.5999450683594
441.65093994140625
219.64761352539062
436.3919982910156
438.4530334472656
434.62286376953125
215.9423828125
432.787109375
213.43687438964844
457.7574768066406
400.6898193359375
212.91171264648438
425.6366882324219
422.9444274902344
212.538330078125
418.2925109863281
419.00872802734375
212.00148010253906
412.3978576660156
413.4715270996094
206.70872497558594
449.6966857910156
371.3456726074219
205.78089904785156
402.8294372558594
406.9516296386719
203.5343780517578
397.5940856933594
403.8091735839844
196.5633544921875
399.08575439453125
398.0041198730469
197.38339233398438
445.2954406738281
339.207275390625
192.09654235839844
391.2762145996094
387.0630798339844
191.96551513671875
384.73138427734375
382.9258117675781
192.6968536376953
377.6981506347656
378.0811462402344
186.06114196777344
378.5643005371094
372.6278381347656
186.92413330078125
370.3028259277344
369.58929443359375
181.13973999023438
367.51580810546875
365.83087158203125
184.31109619140625
358.54644775390625
360.8437194824219
387.5848083496094
177.7099151611328
326.7078857421875
175.6629638671875
352.7529296875
353.6250305175781
346.32550048828125
174.59585571289062
349.1229248046875
341.4494934082031
175.20281982421875
341.40960693359375
337.4330139160156
170.1179962158203
338.57568359375
334.0265197753906
169.11318969726562
332.4146423339844
168.73953247070312
346.9783630371094
309.7554626464844
325.1979675292969
166.12460327148438
321.79144287109375
320.656005859375
162.53240966796875
318.6014709472656
161.95855712890625
315.9609680175781
313.732177734375
159.51084899902344
327.80926513671875
292.2534484863281
307.4174499511719
156.26913452148438
304.78216552734375
302.6336669921875
152.30718994140625
304.4465637207031
296.6677551269531
151.57965087890625
297.7182922363281
293.07879638671875
145.9628143310547
293.20745849609375
291.9902648925781
144.85447692871094
287.0514831542969
287.2530212402344
140.17359924316406
284.66351318359375
282.21844482421875
140.14695739746094
278.67877197265625
276.11175537109375
139.76416015625
274.3044128417969
271.0702209472656
137.0945587158203
269.59490966796875
268.4386901855469
132.75665283203125
266.53076171875
263.4330749511719
132.78579711914062
259.6510009765625
259.1949157714844
153.68064880371094
315.9091491699219
169.3046112060547
128.78506469726562
252.1381378173828
249.55294799804688
150.34133911132812
220.52737426757812
247.34442138671875
121.63760375976562
244.64288330078125
239.39454650878906
144.27752685546875
213.44830322265625
237.43653869628906
116.29854583740234
234.3864288330078
233.63815307617188
147.68357849121094
196.80755615234375
228.0535125732422
112.93130493164062
224.10984802246094
224.43704223632812
137.8111572265625
194.91957092285156
217.62579345703125
108.36124420166016
215.47544860839844
215.4458465576172
134.94631958007812
182.2884063720703
209.86598205566406
104.55980682373047
206.91334533691406
205.3779754638672
130.04701232910156
174.43580627441406
200.79299926757812
98.200439453125
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: damage from cascade weapons

Post by Eric Walch »

Commander McLane wrote:
I got curious about the amount of damage dealt by the cascading explosion.
I also. A quick look shows that the energy damage is not a constant. The update code for an energy blast (with a lot of lines deleted) is:

Code: Select all

- (void) update:(OOTimeDelta) delta_t
{
	_timePassed += delta_t;
	
	GLfloat tf = _timePassed / kQuiriumCascadeDuration;
	energy = delta_t * (100000 - 90000 * tf);	// adjusted to take into account delta_t
		
	// manage collisions
	Entity *owner = [self owner];
	Entity *e = nil;
	foreach (e, collidingEntities)
	{
		[e takeEnergyDamage:energy from:self becauseOf:owner];
	}
	
	// expire after ttl
	if (_timePassed > kQuiriumCascadeDuration)
	{
		[UNIVERSE removeEntity:self];
	}
}
That means at least that the energy damage is dealt every frame. And with a high fps rate, the energy damage per frame is smaller. And in time, the damage per seconds increases.

The observation that the values in your list first increase and than decrease, clearly shows that fps rate is first dropping because if creating an increased number of explosions. Than at the end of the blast, the fps rate increases and the energy per frame decreases again.
Post Reply