Compare commits

...

5 Commits

Author SHA1 Message Date
Pinky 068149ffdd :D 2016-01-24 21:02:15 -05:00
Pinky db15171c4f :D 2016-01-19 10:46:00 -05:00
Pinky 66c4d0a23a :D 2016-01-19 10:42:33 -05:00
Pinky 1cdb90f5ac :D 2016-01-18 21:33:30 -05:00
Pinky 771fcc88d0 :D 2016-01-18 13:27:54 -05:00
47 changed files with 4756 additions and 52 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,11 @@
# Blender MTL File: 'fireplace.blend'
# Material Count: 1
newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
map_Kd /home/cg72/.minetest/games/epicnodedemo_game/mods/game/textures/default_stone.png

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
# Blender MTL File: 'fireplace.blend'
# Material Count: 1
newmtl None
Ns 0.000000
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.800000 0.800000 0.800000
Ni 1.000000
d 1.000000
illum 2
map_Kd /home/cg72/.minetest/games/epicnodedemo_game/mods/game/textures/game_door.png
map_d /home/cg72/.minetest/games/epicnodedemo_game/mods/game/textures/game_door.png

View File

@ -0,0 +1,526 @@
# Blender v2.66 (sub 1) OBJ File: 'fireplace.blend'
# www.blender.org
mtllib fireplacemantel.mtl
o Plane.000
v -0.110787 0.176756 0.134585
v -0.156728 0.176756 0.243071
v -0.291995 0.176756 0.243071
v -0.111178 0.176756 0.134585
v -0.156728 0.176756 -0.299358
v -0.156728 0.176756 -0.190872
v -0.291995 0.176756 -0.190872
v -0.291995 0.176756 -0.299358
v -0.156728 0.176756 0.351556
v -0.291995 0.176756 0.351556
v -0.085707 0.176756 0.026100
v -0.083982 0.176756 0.026100
v -0.110787 0.176756 -0.082386
v -0.111178 0.176756 -0.082386
v -0.103926 0.176756 0.166481
v -0.088294 0.176756 0.025171
v -0.118084 0.176756 -0.116139
v -0.113689 0.282327 -0.389592
v -0.113689 0.282327 -0.500872
v -0.028605 0.282327 -0.454812
v -0.028605 0.282327 -0.389592
v -0.454024 0.282327 -0.389592
v -0.454024 0.282327 -0.524471
v -0.368940 0.282327 -0.524471
v -0.368940 0.282327 -0.389592
v -0.454024 0.282327 0.149925
v -0.454024 0.282327 0.015045
v -0.368940 0.282327 0.015045
v -0.368940 0.282327 0.149925
v -0.113689 0.282327 0.149925
v -0.113689 0.282327 0.015045
v -0.028605 0.282327 0.015045
v -0.028605 0.282327 0.149925
v -0.283856 0.282327 -0.389592
v -0.283856 0.282327 -0.489268
v -0.198772 0.282327 -0.494137
v -0.198772 0.282327 -0.389592
v -0.283856 0.282327 -0.119834
v -0.283856 0.282327 -0.254713
v -0.198772 0.282327 -0.254713
v -0.198772 0.282327 -0.119834
v -0.113689 0.282327 -0.119834
v -0.113689 0.282327 -0.254713
v -0.028605 0.282327 -0.254713
v -0.028605 0.282327 -0.119834
v -0.283856 0.156555 -0.386912
v -0.198772 0.183162 -0.386912
v -0.198772 0.204861 -0.490774
v -0.283856 0.203677 -0.485938
v -0.283856 0.046623 -0.119367
v -0.198772 0.082988 -0.118915
v -0.198772 0.119771 -0.252914
v -0.283856 0.119771 -0.252914
v -0.454024 0.282327 -0.119834
v -0.454024 0.282327 -0.254713
v -0.368940 0.282327 -0.254713
v -0.368940 0.282327 -0.119834
v -0.624191 0.282327 0.149925
v -0.624191 0.282327 0.015045
v -0.539107 0.282327 0.015045
v -0.539107 0.282327 0.149925
v -0.113689 0.058673 0.149080
v -0.028605 0.037761 0.149080
v -0.028605 0.046204 0.015082
v -0.113689 0.046204 0.015082
v -0.454024 0.282327 0.419683
v -0.454024 0.282327 0.284804
v -0.368940 0.282327 0.284804
v -0.368940 0.282327 0.419683
v -0.283856 0.282327 0.149925
v -0.283856 0.282327 0.015045
v -0.198772 0.282327 0.015045
v -0.198772 0.282327 0.149925
v -0.283856 0.282327 0.419683
v -0.283856 0.282327 0.284804
v -0.198772 0.282327 0.284804
v -0.198772 0.282327 0.419683
v -0.113689 0.282327 0.419683
v -0.113689 0.282327 0.284804
v -0.028605 0.282327 0.284804
v -0.028605 0.282327 0.419683
v -0.539107 0.282327 -0.389592
v -0.539107 0.282327 -0.481863
v -0.539107 0.282327 -0.254713
v -0.539107 0.282327 0.284804
v -0.454024 0.066695 0.148926
v -0.368940 0.066695 0.148926
v -0.368940 0.033138 0.014780
v -0.454024 0.077523 0.014780
v -0.624191 0.282327 -0.254713
v -0.603286 0.282327 -0.389592
v -0.454024 0.156555 -0.386912
v -0.368940 0.156555 -0.386912
v -0.368940 0.193339 -0.520909
v -0.454024 0.204791 -0.520909
v -0.720298 0.282327 0.015045
v -0.663111 0.282327 -0.119834
v -0.624191 0.282327 -0.119834
v -0.539107 0.282327 -0.119834
v -0.709275 0.282327 0.149925
v -0.658779 0.282327 0.284804
v -0.624191 0.282327 0.284804
v -0.113689 0.156555 -0.386912
v -0.028605 0.156555 -0.386912
v -0.028605 0.174342 -0.451706
v -0.113689 0.186903 -0.497465
v -0.624191 0.282327 0.419683
v -0.539107 0.282327 0.419683
v -0.539107 0.282327 0.525689
v -0.454024 0.282327 0.554562
v -0.368940 0.282327 0.570627
v -0.283856 0.282327 0.585240
v -0.198772 0.282327 0.554562
v -0.113689 0.282327 0.537774
v -0.028605 0.282327 0.501809
v -0.113689 0.097789 -0.118915
v -0.028605 0.113587 -0.118915
v -0.028605 0.141531 -0.252914
v -0.113689 0.146378 -0.252914
v -0.454024 0.082988 -0.118915
v -0.368940 0.046623 -0.119367
v -0.368940 0.119771 -0.252914
v -0.454024 0.119771 -0.252914
v -0.624191 0.106994 0.148926
v -0.539107 0.094558 0.148926
v -0.539107 0.111320 0.014780
v -0.624191 0.101057 0.015082
v -0.454024 0.091829 0.417218
v -0.368940 0.083386 0.417218
v -0.368940 0.100253 0.283072
v -0.454024 0.092453 0.283072
v -0.283856 0.066695 0.148926
v -0.198772 0.030266 0.149080
v -0.198772 0.046204 0.015082
v -0.283856 0.033138 0.014780
v -0.283856 0.122188 0.417218
v -0.198772 0.157403 0.417218
v -0.198772 0.100253 0.283072
v -0.283856 0.100253 0.283072
v -0.113689 0.163598 0.417218
v -0.028605 0.133810 0.417218
v -0.028605 0.100253 0.283072
v -0.113689 0.100253 0.283072
v -0.539107 0.156555 -0.386912
v -0.539107 0.222110 -0.478580
v -0.539107 0.119771 -0.252914
v -0.539107 0.100253 0.283072
v -0.624191 0.170250 -0.252914
v -0.603286 0.184765 -0.386912
v -0.720298 0.117747 0.015082
v -0.624191 0.139400 -0.118915
v -0.663111 0.160715 -0.118915
v -0.539107 0.133119 -0.118915
v -0.709275 0.184596 0.148926
v -0.658779 0.204621 0.283072
v -0.624191 0.100253 0.283072
v -0.624191 0.133810 0.417218
v -0.539107 0.133810 0.417218
v -0.539107 0.160183 0.522648
v -0.454024 0.167367 0.551364
v -0.368940 0.171364 0.567343
v -0.283856 0.205919 0.581876
v -0.198772 0.167367 0.551364
v -0.113689 0.163190 0.534668
v -0.028605 0.154243 0.498899
v -0.409182 0.176756 0.237136
v -0.329717 0.176756 -0.157141
vt 0.194770 0.740284
vt 0.177888 0.723408
vt 0.179177 0.698229
vt 0.195460 0.736633
vt 0.287447 0.754969
vt 0.267767 0.752881
vt 0.278887 0.722653
vt 0.288250 0.723690
vt 0.160495 0.720389
vt 0.170061 0.694771
vt 0.216931 0.759649
vt 0.218197 0.756477
vt 0.243266 0.761434
vt 0.244309 0.758240
vt 0.206500 0.742816
vt 0.219522 0.753950
vt 0.245935 0.754510
vt 0.459789 0.343530
vt 0.518465 0.343833
vt 0.518612 0.315460
vt 0.460039 0.295119
vt 0.225079 0.342316
vt 0.283757 0.342620
vt 0.284060 0.283942
vt 0.225383 0.283638
vt 0.223866 0.577026
vt 0.282543 0.577330
vt 0.282847 0.518652
vt 0.224169 0.518349
vt 0.458576 0.578239
vt 0.517254 0.578542
vt 0.517557 0.519864
vt 0.458879 0.519561
vt 0.342434 0.342923
vt 0.401112 0.343226
vt 0.401347 0.297746
vt 0.342658 0.299560
vt 0.341827 0.460278
vt 0.400505 0.460581
vt 0.400808 0.401903
vt 0.342131 0.401600
vt 0.459182 0.460884
vt 0.517859 0.461187
vt 0.518162 0.402510
vt 0.459485 0.402207
vt 0.284742 0.346217
vt 0.286137 0.296242
vt 0.219662 0.296710
vt 0.221693 0.345647
vt 0.282724 0.470710
vt 0.283302 0.408730
vt 0.222064 0.408297
vt 0.221779 0.469443
vt 0.224472 0.459671
vt 0.283150 0.459975
vt 0.283454 0.401297
vt 0.224776 0.400993
vt 0.106511 0.576420
vt 0.165189 0.576723
vt 0.165492 0.518045
vt 0.106814 0.517742
vt 0.162456 0.591012
vt 0.161559 0.531139
vt 0.101301 0.532513
vt 0.103820 0.590657
vt 0.223260 0.694381
vt 0.281937 0.694685
vt 0.282240 0.636007
vt 0.223563 0.635704
vt 0.341221 0.577632
vt 0.399899 0.577936
vt 0.400202 0.519258
vt 0.341524 0.518955
vt 0.340615 0.694988
vt 0.399292 0.695291
vt 0.399596 0.636613
vt 0.340918 0.636310
vt 0.457970 0.695594
vt 0.516648 0.695897
vt 0.516951 0.637219
vt 0.458273 0.636916
vt 0.166402 0.342013
vt 0.166610 0.301871
vt 0.166098 0.400690
vt 0.164885 0.635401
vt 0.400941 0.590803
vt 0.401874 0.531721
vt 0.341715 0.530939
vt 0.341719 0.590336
vt 0.107420 0.400387
vt 0.122141 0.341783
vt 0.405941 0.352655
vt 0.409328 0.293989
vt 0.351655 0.290842
vt 0.346425 0.349571
vt 0.040534 0.517399
vt 0.107117 0.459064
vt 0.080276 0.458926
vt 0.165795 0.459368
vt 0.047833 0.576116
vt 0.082354 0.634974
vt 0.106208 0.635097
vt 0.162005 0.348659
vt 0.159718 0.301039
vt 0.112715 0.322561
vt 0.107156 0.345562
vt 0.105904 0.693775
vt 0.164582 0.694078
vt 0.164343 0.740195
vt 0.222956 0.753059
vt 0.281598 0.760352
vt 0.340243 0.767012
vt 0.398989 0.753969
vt 0.457705 0.746969
vt 0.516463 0.731626
vt 0.160294 0.469152
vt 0.160816 0.407573
vt 0.098885 0.404781
vt 0.096312 0.469438
vt 0.402766 0.472266
vt 0.404342 0.412165
vt 0.344180 0.410309
vt 0.342540 0.471728
vt 0.519638 0.593832
vt 0.520672 0.536228
vt 0.461946 0.532897
vt 0.460183 0.591860
vt 0.400675 0.706941
vt 0.400545 0.649432
vt 0.341812 0.649722
vt 0.342605 0.708370
vt 0.282052 0.590438
vt 0.282245 0.530464
vt 0.221993 0.530426
vt 0.222176 0.589994
vt 0.282751 0.710270
vt 0.282270 0.650347
vt 0.222619 0.650608
vt 0.222687 0.710961
vt 0.164427 0.710346
vt 0.162885 0.650727
vt 0.101719 0.652828
vt 0.108480 0.712822
vt 0.463382 0.354762
vt 0.465677 0.313704
vt 0.464284 0.412680
vt 0.458577 0.650147
vt 0.527740 0.409579
vt 0.504499 0.354591
vt 0.577963 0.539380
vt 0.556791 0.475300
vt 0.526667 0.474091
vt 0.464001 0.472863
vt 0.578923 0.592437
vt 0.550710 0.657411
vt 0.516094 0.652744
vt 0.510405 0.707123
vt 0.457785 0.706086
vt 0.459212 0.750040
vt 0.403524 0.767728
vt 0.343833 0.777109
vt 0.283204 0.786260
vt 0.221844 0.771664
vt 0.163260 0.761490
vt 0.115812 0.741462
vt 0.081988 0.334394
vt 0.099338 0.306348
vt 0.550231 0.397671
vt 0.581102 0.464138
vt 0.059000 0.464336
vt 0.067976 0.398810
vt 0.051098 0.595226
vt 0.051413 0.529328
vt 0.351957 0.271721
vt 0.412949 0.278809
vt 0.218648 0.795771
vt 0.157020 0.784310
vt 0.519135 0.341126
vt 0.565453 0.665782
vt 0.532904 0.727721
vt 0.597964 0.599367
vt 0.611226 0.535986
vt 0.156134 0.282592
vt 0.219079 0.279696
vt 0.469300 0.772694
vt 0.100569 0.760508
vt 0.282699 0.802417
vt 0.078695 0.726180
vt 0.061768 0.661472
vt 0.285213 0.278328
vt 0.408458 0.791284
vt 0.345723 0.800524
vt 0.471353 0.302563
usemtl None
s off
f 1/1 2/2 3/3 4/4
f 5/5 6/6 7/7 8/8
f 2/2 9/9 10/10 3/3
f 11/11 1/1 4/4 12/12
f 13/13 11/11 12/12 14/14
f 6/6 13/13 14/14 7/7
f 12/12 4/4 15/15 16/16
f 14/14 12/12 16/16 17/17
f 18/18 21/19 20/20 19/21
f 22/22 25/23 24/24 23/25
f 26/26 29/27 28/28 27/29
f 30/30 33/31 32/32 31/33
f 34/34 37/35 36/36 35/37
f 38/38 41/39 40/40 39/41
f 42/42 45/43 44/44 43/45
f 46/46 49/47 48/48 47/49
f 50/50 53/51 52/52 51/53
f 54/54 57/55 56/56 55/57
f 58/58 61/59 60/60 59/61
f 62/62 65/63 64/64 63/65
f 66/66 69/67 68/68 67/69
f 70/70 73/71 72/72 71/73
f 74/74 77/75 76/76 75/77
f 78/78 81/79 80/80 79/81
f 37/35 18/18 19/21 36/36
f 40/40 43/45 18/18 37/35
f 43/45 44/44 21/19 18/18
f 82/82 22/22 23/25 83/83
f 84/84 55/57 22/22 82/82
f 55/57 56/56 25/23 22/22
f 61/59 26/26 27/29 60/60
f 85/85 67/69 26/26 61/59
f 67/69 68/68 29/27 26/26
f 73/71 30/30 31/33 72/72
f 76/76 79/81 30/30 73/71
f 79/81 80/80 33/31 30/30
f 25/23 34/34 35/37 24/24
f 56/56 39/41 34/34 25/23
f 39/41 40/40 37/35 34/34
f 57/55 38/38 39/41 56/56
f 28/28 71/73 38/38 57/55
f 71/73 72/72 41/39 38/38
f 41/39 42/42 43/45 40/40
f 72/72 31/33 42/42 41/39
f 31/33 32/32 45/43 42/42
f 86/86 89/87 88/88 87/89
f 90/90 84/84 82/82 91/91
f 91/91 82/82 83/83
f 92/92 95/93 94/94 93/95
f 96/96 59/61 98/97 97/98
f 59/61 60/60 99/99 98/97
f 99/99 54/54 55/57 84/84
f 60/60 27/29 54/54 99/99
f 27/29 28/28 57/55 54/54
f 100/100 58/58 59/61 96/96
f 101/101 102/102 58/58 100/100
f 102/102 85/85 61/59 58/58
f 103/103 106/104 105/105 104/106
f 107/107 108/108 85/85 102/102
f 98/97 99/99 84/84 90/90
f 108/108 66/66 67/69 85/85
f 109/109 110/110 66/66 108/108
f 110/110 111/111 69/67 66/66
f 29/27 70/70 71/73 28/28
f 68/68 75/77 70/70 29/27
f 75/77 76/76 73/71 70/70
f 69/67 74/74 75/77 68/68
f 111/111 112/112 74/74 69/67
f 112/112 113/113 77/75 74/74
f 77/75 78/78 79/81 76/76
f 113/113 114/114 78/78 77/75
f 114/114 115/115 81/79 78/78
f 107/107 102/102 101/101
f 107/107 109/109 108/108
f 97/98 98/97 90/90
f 116/116 119/117 118/118 117/119
f 120/120 123/121 122/122 121/123
f 124/124 127/125 126/126 125/127
f 128/128 131/129 130/130 129/131
f 132/132 135/133 134/134 133/135
f 136/136 139/137 138/138 137/139
f 140/140 143/141 142/142 141/143
f 47/49 48/48 106/104 103/103
f 52/52 47/49 103/103 119/117
f 119/117 103/103 104/106 118/118
f 144/144 145/145 95/93 92/92
f 146/146 144/144 92/92 123/121
f 123/121 92/92 93/95 122/122
f 125/127 126/126 89/87 86/86
f 147/147 125/127 86/86 131/129
f 131/129 86/86 87/89 130/130
f 133/135 134/134 65/63 62/62
f 138/138 133/135 62/62 143/141
f 143/141 62/62 63/65 142/142
f 93/95 94/94 49/47 46/46
f 122/122 93/95 46/46 53/51
f 53/51 46/46 47/49 52/52
f 121/123 122/122 53/51 50/50
f 88/88 121/123 50/50 135/133
f 135/133 50/50 51/53 134/134
f 51/53 52/52 119/117 116/116
f 134/134 51/53 116/116 65/63
f 65/63 116/116 117/119 64/64
f 148/148 149/149 144/144 146/146
f 149/149 145/145 144/144
f 150/150 152/151 151/152 127/125
f 127/125 151/152 153/153 126/126
f 153/153 146/146 123/121 120/120
f 126/126 153/153 120/120 89/87
f 89/87 120/120 121/123 88/88
f 154/154 150/150 127/125 124/124
f 155/155 154/154 124/124 156/156
f 156/156 124/124 125/127 147/147
f 157/157 156/156 147/147 158/158
f 151/152 148/148 146/146 153/153
f 158/158 147/147 131/129 128/128
f 159/159 158/158 128/128 160/160
f 160/160 128/128 129/131 161/161
f 87/89 88/88 135/133 132/132
f 130/130 87/89 132/132 139/137
f 139/137 132/132 133/135 138/138
f 129/131 130/130 139/137 136/136
f 161/161 129/131 136/136 162/162
f 162/162 136/136 137/139 163/163
f 137/139 138/138 143/141 140/140
f 163/163 137/139 140/140 164/164
f 164/164 140/140 141/143 165/165
f 157/157 155/155 156/156
f 157/157 158/158 159/159
f 152/151 148/148 151/152
f 21/166 104/106 105/105 20/167
f 90/168 148/148 152/151 97/169
f 45/170 117/119 118/118 44/171
f 33/172 63/65 64/64 32/173
f 24/174 94/94 95/93 23/175
f 113/176 163/163 164/164 114/177
f 91/178 149/149 148/148 90/168
f 101/179 155/155 157/157 107/180
f 100/181 154/154 155/155 101/179
f 97/169 152/151 150/150 96/182
f 32/173 64/64 117/119 45/170
f 19/183 106/104 48/48 36/184
f 107/180 157/157 159/159 109/185
f 114/177 164/164 165/165 115/186
f 112/187 162/162 163/163 113/176
f 96/182 150/150 154/154 100/181
f 81/188 141/143 142/142 80/189
f 20/167 105/105 106/104 19/183
f 36/184 48/48 49/47 35/190
f 109/185 159/159 160/160 110/191
f 111/192 161/161 162/162 112/187
f 83/193 145/145 149/149 91/178
f 44/171 118/118 104/106 21/166
f 115/186 165/165 141/143 81/188
f 80/189 142/142 63/65 33/172
f 23/175 95/93 145/145 83/193
f 35/190 49/47 94/94 24/174
f 110/191 160/160 161/161 111/192
f 167 17
f 166 15

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 KiB

View File

@ -0,0 +1,12 @@
# Blender MTL File: 'characteroxen.blend'
# Material Count: 1
newmtl Character
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd /home/cg72/.cache/.fr-1NpCCr/epicnodedemo_game-master/mods/game/textures/default_obsidian.png

187
mods/game/models/horns.obj Normal file
View File

@ -0,0 +1,187 @@
# Blender v2.66 (sub 1) OBJ File: 'characteroxen.blend'
# www.blender.org
mtllib horns.mtl
o Player_Cube
v 1.764651 10.230301 -2.104668
v 1.767932 10.582121 -1.139558
v 1.858858 11.191244 -2.455288
v 1.862140 11.543064 -1.490178
v 1.876035 11.525629 -2.030556
v 1.815577 11.120611 -1.155704
v 1.750755 10.247734 -1.564289
v 1.811213 10.652750 -2.439142
v 1.813395 10.886681 -1.797423
v 2.768497 10.029202 -1.729846
v 2.692274 10.386005 -0.769583
v 2.891119 10.988369 -2.076512
v 2.814896 11.345173 -1.116249
v 2.873230 11.324955 -1.653553
v 2.741015 10.924437 -0.784552
v 2.710163 10.049417 -1.192543
v 2.842378 10.449942 -2.061544
v 5.153539 10.365211 -2.258484
v 4.018229 10.024544 -1.689352
v 3.968684 10.366405 -0.835896
v 3.987385 10.878138 -2.033058
v 3.937839 11.219999 -1.179601
v 3.957525 11.189842 -1.663013
v 3.945091 10.849581 -0.866999
v 3.998544 10.054701 -1.205940
v 4.010978 10.394962 -2.001955
v 5.420657 10.582563 -1.737275
v 5.009965 10.948978 -2.428342
v 5.277081 11.166330 -1.907133
v 5.119844 11.153929 -2.195750
v 5.392920 10.910292 -1.736248
v 5.310776 10.377613 -1.969867
v 5.037700 10.621250 -2.429368
v 6.016704 11.311415 -3.950320
v 5.850567 10.847176 -3.222586
v 6.114312 10.978712 -3.065877
v 5.727164 11.153379 -3.271905
v 5.990908 11.284912 -3.115195
v 5.838684 11.269644 -3.201684
v 6.096106 11.153505 -3.064692
v 6.002790 10.862448 -3.136099
v 5.745370 10.978588 -3.273089
v -1.794954 10.917217 -1.752750
v -1.792444 10.683289 -2.394467
v -1.732334 10.278278 -1.519587
v -1.797464 11.151148 -1.111031
v -1.857574 11.556154 -1.985912
v -1.843930 11.573593 -1.445528
v -1.840155 11.221775 -2.410636
v -1.749753 10.612661 -1.094864
v -1.745978 10.260843 -2.059972
v -2.749969 10.059607 -1.685613
v -2.674238 10.416420 -0.725315
v -2.872562 11.018759 -2.032336
v -2.796832 11.375572 -1.072038
v -2.854915 11.355347 -1.609368
v -2.723046 10.954845 -0.740307
v -2.691885 10.079832 -1.148283
v -2.823755 10.480337 -2.017345
v -5.134814 10.395290 -2.215350
v -3.999719 10.054779 -1.645695
v -3.950614 10.396645 -0.792217
v -3.968833 10.908377 -1.989387
v -3.919728 11.250242 -1.135907
v -3.939187 11.220087 -1.619328
v -3.927073 10.879824 -0.823308
v -3.980261 10.084936 -1.162274
v -3.992374 10.425200 -1.958295
v -5.402200 10.612606 -1.694265
v -4.991240 10.979078 -2.385142
v -5.258627 11.196390 -1.864057
v -5.101255 11.184011 -2.152601
v -5.374510 10.940336 -1.693225
v -5.292185 10.407669 -1.926806
v -5.018930 10.651344 -2.386181
v -5.997328 11.341375 -3.907584
v -5.831462 10.877161 -3.179774
v -6.095298 11.008657 -3.023187
v -5.708079 11.183378 -3.229036
v -5.971913 11.314877 -3.072448
v -5.819648 11.299627 -3.158866
v -6.077117 11.183456 -3.021993
v -5.983728 10.892408 -3.093356
v -5.726261 11.008583 -3.230228
vt 0.250036 0.500000
vt 0.500001 0.500000
vt 0.500001 0.000071
vt 0.250036 0.000071
vt 0.250036 0.999929
vt 0.500000 0.999929
vt 0.000071 0.999929
vt 0.000071 0.500000
vt 0.000071 0.000071
usemtl Character
s off
f 9/1 8/2 1/3 7/4
f 5/5 3/6 8/2 9/1
f 4/7 5/5 9/1 6/8
f 6/8 9/1 7/4 2/9
f 15/8 11/9 20/9 24/8
f 13/7 15/8 24/8 22/7
f 16/4 10/3 19/3 25/4
f 11/9 16/4 25/4 20/9
f 6/8 2/9 11/9 15/8
f 3/6 5/5 14/5 12/6
f 1/3 8/2 17/2 10/3
f 5/5 4/7 13/7 14/5
f 8/2 3/6 12/6 17/2
f 2/9 7/4 16/4 11/9
f 7/4 1/3 10/3 16/4
f 4/7 6/8 15/8 13/7
f 22/7 24/8 31/8 29/7
f 25/4 19/3 18/3 32/4
f 20/9 25/4 32/4 27/9
f 26/2 21/6 28/6 33/2
f 12/6 14/5 23/5 21/6
f 10/3 17/2 26/2 19/3
f 14/5 13/7 22/7 23/5
f 17/2 12/6 21/6 26/2
f 33/2 28/6 37/6 42/2
f 30/5 29/7 38/7 39/5
f 18/3 33/2 42/2 35/3
f 28/6 30/5 39/5 37/6
f 24/8 20/9 27/9 31/8
f 21/6 23/5 30/5 28/6
f 19/3 26/2 33/2 18/3
f 23/5 22/7 29/7 30/5
f 44/2 59/2 54/6 49/6
f 47/5 56/5 55/7 48/7
f 51/3 52/3 59/2 44/2
f 49/6 54/6 56/5 47/5
f 27/9 32/4 41/4 36/9
f 32/4 18/3 35/3 41/4
f 29/7 31/8 40/8 38/7
f 31/8 27/9 36/9 40/8
f 46/8 57/8 53/9 50/9
f 53/9 62/9 67/4 58/4
f 58/4 67/4 61/3 52/3
f 55/7 64/7 66/8 57/8
f 57/8 66/8 62/9 53/9
f 46/8 50/9 45/4 43/1
f 48/7 46/8 43/1 47/5
f 47/5 43/1 44/2 49/6
f 43/1 45/4 51/3 44/2
f 35/3 42/2 34/3
f 37/6 39/5 34/6
f 40/8 36/9 34/8
f 38/7 40/8 34/7
f 39/5 38/7 34/5
f 42/2 37/6 34/2
f 36/9 41/4 34/9
f 41/4 35/3 34/4
f 50/9 53/9 58/4 45/4
f 45/4 58/4 52/3 51/3
f 48/7 55/7 57/8 46/8
f 64/7 71/7 73/8 66/8
f 67/4 74/4 60/3 61/3
f 62/9 69/9 74/4 67/4
f 68/2 75/2 70/6 63/6
f 54/6 63/6 65/5 56/5
f 52/3 61/3 68/2 59/2
f 56/5 65/5 64/7 55/7
f 59/2 68/2 63/6 54/6
f 75/2 84/2 79/6 70/6
f 72/5 81/5 80/7 71/7
f 60/3 77/3 84/2 75/2
f 70/6 79/6 81/5 72/5
f 66/8 73/8 69/9 62/9
f 63/6 70/6 72/5 65/5
f 61/3 60/3 75/2 68/2
f 65/5 72/5 71/7 64/7
f 69/9 78/9 83/4 74/4
f 74/4 83/4 77/3 60/3
f 71/7 80/7 82/8 73/8
f 73/8 82/8 78/9 69/9
f 77/3 76/3 84/2
f 79/6 76/6 81/5
f 82/8 76/8 78/9
f 80/7 76/7 82/8
f 81/5 76/5 80/7
f 84/2 76/2 79/6
f 78/9 76/9 83/4
f 83/4 76/4 77/3

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 716 B

BIN
mods/game/models/room.b3d Normal file

Binary file not shown.

BIN
mods/game/models/room.blend Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

21
mods/game/models/room.mtl Normal file
View File

@ -0,0 +1,21 @@
# Blender MTL File: 'room.blend'
# Material Count: 2
newmtl Material
Ns 96.078431
Ka 0.000000 0.000000 0.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ni 1.000000
d 1.000000
illum 2
map_Kd game_room.png
newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
map_Kd game_room.png

2336
mods/game/models/room.obj Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,11 @@
# Blender MTL File: 'table.blend'
# Material Count: 1
newmtl None
Ns 0
Ka 0.000000 0.000000 0.000000
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2
map_Kd /home/cg72/.minetest/games/epicnodedemo_game/mods/game/textures/game_jungle_tree.png

219
mods/game/models/table.obj Normal file
View File

@ -0,0 +1,219 @@
# Blender v2.66 (sub 1) OBJ File: 'table.blend'
# www.blender.org
mtllib table.mtl
o Plane.001
v 0.502418 0.352707 0.454522
v -0.467741 0.372718 0.550220
v 0.476617 0.365279 -0.395459
v -0.497338 0.389311 -0.485460
v 0.071139 0.359407 0.673690
v 0.071228 0.378250 -0.693473
v 0.588382 0.357547 -0.001231
v -0.577596 0.383904 -0.000841
v -0.361282 0.388201 -0.653709
v -0.307232 0.385454 -0.548789
v 0.514857 0.521863 0.457024
v -0.437051 0.486388 0.500729
v 0.497071 0.534435 -0.392958
v -0.502235 0.499110 -0.532581
v 0.065987 0.502957 0.648600
v 0.110074 0.524418 -0.691311
v 0.598092 0.531806 0.001346
v -0.608459 0.487393 0.000689
v -0.366240 0.506078 -0.651966
v -0.368245 0.506539 -0.579062
v -0.198301 0.366062 0.611955
v -0.402285 0.387382 -0.517124
v 0.532500 0.361413 -0.198345
v -0.522669 0.378311 0.274690
v 0.286778 0.356057 0.564106
v 0.273923 0.371764 -0.544466
v 0.545400 0.355127 0.226645
v -0.537467 0.386608 -0.243151
v -0.334257 0.386827 -0.601249
v -0.145027 0.383225 -0.673591
vt 0.474053 0.747729
vt 0.452532 0.732423
vt 0.444618 0.726040
vt 0.432729 0.729136
vt 0.452535 0.745115
vt 0.040992 0.819597
vt 0.062318 0.812721
vt 0.027664 0.751542
vt 0.003586 0.749993
vt 0.013143 0.786024
vt 0.428949 0.817279
vt 0.449905 0.783877
vt 0.404134 0.813980
vt 0.306416 0.856024
vt 0.372774 0.840677
vt 0.296574 0.842219
vt 0.102691 0.838428
vt 0.166793 0.856143
vt 0.173817 0.841574
vt 0.086538 0.671265
vt 0.044479 0.710496
vt 0.103037 0.681088
vt 0.411298 0.698679
vt 0.331447 0.682964
vt 0.255402 0.669700
vt 0.252963 0.679348
vt 0.408524 0.711522
vt 0.430986 0.713323
vt 0.239378 0.856143
vt 0.170764 0.664936
vt 0.042100 0.819897
vt 0.013024 0.785841
vt 0.004010 0.749751
vt 0.043511 0.711182
vt 0.086173 0.670842
vt 0.170675 0.665329
vt 0.255998 0.669399
vt 0.331939 0.683100
vt 0.412305 0.698439
vt 0.432036 0.713896
vt 0.446314 0.726872
vt 0.453310 0.732251
vt 0.473914 0.747751
vt 0.449154 0.783540
vt 0.428672 0.816898
vt 0.372439 0.840167
vt 0.307015 0.855660
vt 0.239993 0.855988
vt 0.166417 0.856316
vt 0.102620 0.838434
usemtl None
s off
f 9/1 29/2 10/3 20/4 19/5
f 1/6 11/7 15/8 5/9 25/10
f 6/11 30/12 9/1 19/5 16/13
f 3/14 26/15 6/11 16/13 13/16
f 1/6 27/17 7/18 17/19 11/7
f 2/20 21/21 5/9 15/8 12/22
f 4/23 28/24 8/25 18/26 14/27
f 4/23 14/27 20/4 10/3 22/28
f 3/14 13/16 17/19 7/18 23/29
f 2/20 12/22 18/26 8/25 24/30
f 19/5 20/4 14/27 18/26 12/22 15/8 11/7 17/19 13/16 16/13
f 1/31 25/32 5/33 21/34 2/35 24/36 8/37 28/38 4/39 22/40 10/41 29/42 9/43 30/44 6/45 26/46 3/47 23/48 7/49 27/50
o Plane
v -0.268515 -0.510884 0.247015
v -0.061941 -0.385631 0.120138
v -0.011203 -0.281123 0.121632
v -0.091578 -0.258316 0.076936
v -0.353319 -0.499073 -0.023651
v -0.137673 -0.226356 0.005184
v 0.141268 -0.516311 0.333987
v 0.073007 -0.416739 0.002066
v 0.153524 -0.222915 0.057171
v 0.075218 -0.255812 0.144260
v 0.305719 -0.499073 -0.200299
v 0.154564 -0.177166 -0.052448
v 0.059145 -0.499073 -0.329021
v 0.011200 -0.189319 -0.140203
v -0.008847 -0.412920 -0.030628
v -0.067582 -0.241108 -0.079969
v -0.029795 0.444062 -0.056733
v -0.060541 0.444624 -0.024852
v 0.014332 0.442778 -0.060371
v 0.046190 0.441471 -0.029626
v 0.019065 0.441423 0.046397
v 0.049811 0.440861 0.014515
v -0.056921 0.444013 0.019289
v -0.025062 0.442707 0.050035
v -0.245496 -0.362715 0.027750
v 0.082882 -0.183243 -0.096325
v 0.080070 -0.344196 -0.234612
v -0.180046 -0.384600 0.161975
v -0.377594 -0.504979 0.127707
v 0.194470 -0.338120 -0.126373
v -0.114626 -0.242336 0.041060
v 0.230746 -0.499073 -0.337568
v -0.249437 -0.347614 0.113474
v 0.164182 -0.306478 -0.214750
vt 0.002481 0.500018
vt 0.060270 0.499880
vt 0.061745 0.542881
vt 0.003011 0.544067
vt 0.002746 0.522043
vt 0.031125 0.521924
vt 0.031099 0.544229
vt 0.061826 0.543752
vt 0.060925 0.521743
vt 0.001708 0.500530
vt 0.058423 0.500198
vt 0.061516 0.544208
vt 0.001780 0.544529
vt 0.002375 0.500428
vt 0.002611 0.522297
vt 0.002848 0.544165
vt 0.060428 0.544439
vt 0.059623 0.499506
vt 0.030997 0.521519
vt 0.060518 0.521476
vt 0.061212 0.543135
vt 0.031764 0.543377
vt 0.001712 0.499571
vt 0.002175 0.545064
vt 0.062841 0.543948
vt 0.060839 0.521745
vt 0.058837 0.499542
vt 0.002806 0.500018
vt 0.002675 0.544378
vt 0.061297 0.544329
vt 0.059070 0.500266
vt 0.001749 0.500530
vt 0.059900 0.499953
vt 0.060851 0.521906
vt 0.061802 0.543860
vt 0.001890 0.544861
vt 0.005023 0.613199
vt 0.061695 0.613679
vt 0.002317 0.543618
vt 0.059043 0.612746
vt 0.003672 0.611612
vt 0.004386 0.613058
vt 0.061619 0.613840
vt 0.005894 0.613034
vt 0.060065 0.613105
vt 0.060694 0.613623
vt 0.005327 0.613104
vt 0.000372 0.544706
vt 0.003598 0.612854
vt 0.059673 0.612683
vt 0.062162 0.612717
vt 0.004839 0.612209
vt 0.059682 0.613406
vt 0.004420 0.613199
vt 0.031152 0.499619
vt 0.060025 0.499733
vt 0.002279 0.499506
vt 0.001325 0.522106
vt 0.001475 0.521562
vt 0.000633 0.499506
vt 0.030229 0.499662
vt 0.059825 0.499817
usemtl None
s off
f 31/51 32/52 33/53 34/54 58/55
f 63/56 61/57 36/58 55/59
f 37/60 38/61 39/62 40/63
f 41/64 60/65 42/66 39/67 38/68
f 64/69 57/70 44/71 56/72
f 45/73 46/74 44/75 57/76 43/77
f 37/78 40/79 33/80 32/81
f 45/82 35/83 55/84 36/85 46/86
f 46/74 48/87 47/88 44/75
f 42/89 56/72 44/71 47/90 49/91
f 42/66 49/92 50/93 39/67
f 40/79 52/94 51/95 33/80
f 46/86 36/85 53/96 48/97
f 34/98 54/99 53/100 36/58 61/57
f 34/54 33/53 51/101 54/102
f 40/63 39/62 50/103 52/104
f 59/105 63/56 55/59 35/106
f 31/107 58/108 63/56 59/105
f 58/108 34/98 61/57 63/56
f 60/109 64/69 56/72 42/89
f 41/110 62/111 64/69 60/109
f 62/111 43/112 57/70 64/69

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

View File

@ -27,7 +27,7 @@ end
minetest.register_on_chat_message(function(name, message)
if not message:find("@") then return true end
local toname, msg = string.match(message, "^@([^ ]+) *(.*)")
if not toname and not msg and msg ~= "" then
if not toname and not msg and msg == "" then
return false
end
if not minetest.get_player_by_name(toname) then
@ -35,7 +35,7 @@ minetest.register_on_chat_message(function(name, message)
return true
end
minetest.chat_send_player(toname, "<"..name.."> "..msg)
minetest.chat_send_player(name, "Message sent!")
minetest.chat_send_player(name, "Message sent to "..toname.."!")
return true
end)

View File

@ -6,7 +6,7 @@
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
minetest.register_node(":game:compass", {
minetest.register_node("game:compass", {
description = "Compass Stone",
tiles = {"game_compass_top.png","game_compass.png"},
groups = {snappy=3,choppy=3,oddly_breakable_by_hand=3},
@ -15,7 +15,7 @@ minetest.register_node(":game:compass", {
local meta = minetest.get_meta(pos);
local pos_s = minetest.pos_to_string({x=math.floor(pos.x),y=math.floor(pos.y),z=math.floor(pos.z)})
local place = ""
local _, _1, _2, place = places.get_closest_string(pos)
local _, _1, _2, place = game.get_closest_string(pos)
meta:set_string("infotext", "\t Location\n\t"..pos_s.."\n"..place)
end,
})

View File

@ -6,6 +6,32 @@
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
function game.effects(pos, texture, spread, dir, time, amount)
if not pos.x or not pos.y or not pos.z or not texture then return end
amount = amount or 50
spread = spread or 0.5
time = time or 0.5
local vel = {x=0,y=0.1,z=0}
if dir ~= "none" then
vel[dir] = 1
end
minetest.add_particlespawner({
amount = amount,
time = 1,
minpos = {x = pos.x+spread, y = pos.y+spread, z = pos.z+spread},
maxpos = {x = pos.x-spread, y = pos.y-spread, z = pos.z-spread},
minvel = vel,
maxvel = vel,
minacc = {x=0,y=0,z=0},
maxacc = {x=0,y=0,z=0},
minexptime = time,
maxexptime = time,
minsize = 5,
maxsize = 5,
texture = texture,
})
end
function game.number_to_texturestring(num,color)
if not color then
color = "#ffffff:255"

View File

@ -30,4 +30,6 @@ dofile(game.runtimepath.."/mobs.lua")
dofile(game.runtimepath.."/fishing.lua")
dofile(game.runtimepath.."/fire.lua")
dofile(game.runtimepath.."/stairs.lua")
dofile(game.runtimepath.."/cmds.lua")
dofile(game.runtimepath.."/cmds.lua")
dofile(game.runtimepath.."/raid.lua")
dofile(game.runtimepath.."/rooms.lua")

View File

@ -181,7 +181,7 @@ game.set_formspec = function(player, pagenum, inv_type)
"tooltip[trash;Empty all]",
"list[detached:trash;main;5.0,4;1,1;]",
"image_button[6,2;1,1;game_pvp_btn.png;pvp;;false;false;game_pvp_btn_pr.png]",
"ztablecolumns[color;text]",
"tablecolumns[color;text]",
"tableoptions[background=#00000000;highlight=#00000000;border=false]",
"table[7,1.9;2.5,3;info;#FF9000,Race: "..race..",#FF9000,Gender: "..gender..",#FF9000,PvP: "..pvp..",#FF9000,Hp: "..hp..
"/"..max_hp..",#FF9000,Lvl: "..lvl..",#FF9000,Exp: "..exp.."/"..next_exp..";]",

View File

@ -128,7 +128,12 @@ set_animation = function(self, type)
x = self.animation.run_start,
y = self.animation.run_end},
self.animation.speed_run, 0)
self.animation.current = "run"
else
self.object:set_animation({
x = self.animation.walk_start,
y = self.animation.walk_end},
self.animation.speed_normal, 0)
self.animation.current = "run"
end
@ -665,7 +670,7 @@ function day_docile(self)
end
-- register mob function
function mobs:register_mob(name, def)
function mobs.register_mob(name, def)
minetest.register_entity(":"..name, {
@ -673,7 +678,10 @@ minetest.register_entity(":"..name, {
name = name,
aname = def.aname or name,
lvl = def.lvl or 1,
boss = def.boss or false,
particles = def.particles or nil,
type = def.type,
exp = def.exp or 0,
attack_type = def.attack_type,
fly = def.fly,
fly_in = def.fly_in or "air",
@ -731,6 +739,7 @@ minetest.register_entity(":"..name, {
env_damage_timer = 0, -- only used when state = "attack"
tamed = false,
pause_timer = 0,
particle_timer = 0,
horny = false,
hornytimer = 0,
child = false,
@ -747,6 +756,21 @@ minetest.register_entity(":"..name, {
local pos = self.object:getpos()
local yaw = self.object:getyaw() or 0
self.particle_timer = self.particle_timer + dtime
if self.particle_timer > 1 then
if self.particles ~= nil then
local p_pos = {x=pos.x, y=pos.y+self.particles.y_adj,z=pos.z}
game.effects(p_pos, self.particles.texture, 1.5, "y", 1.5, 50)
end
self.particle_timer = 0
end
if self.boss then
local new_hp = self.object:get_hp()+(self.hp_max/3000)
if new_hp > self.hp_max then
new_hp = self.hp_max
end
self.object:set_hp(new_hp)
end
self.nametag = "[lvl"..self.lvl.."] "..self.aname.."\n("..self.object:get_hp().." / "..self.hp_max..")"
self.nametag_color = "#ffffff"
@ -754,6 +778,7 @@ minetest.register_entity(":"..name, {
-- when lifetimer expires remove mob (except npc and tamed)
if self.type ~= "npc"
and not self.boss
and not self.tamed
and self.state ~= "attack" then
@ -1427,7 +1452,7 @@ minetest.register_entity(":"..name, {
pos.y = pos.y - 1
mobs:explosion(pos, 2, 0, 1, self.sounds.explode)
mobs.explosion(pos, 2, 0, 1, self.sounds.explode)
self.object:remove()
@ -1458,6 +1483,7 @@ minetest.register_entity(":"..name, {
y = 1 * self.walk_velocity,
z = v.z
})
set_animation(self, "walk")
elseif me_y > p_y then
@ -1466,6 +1492,7 @@ minetest.register_entity(":"..name, {
y = -1 * self.walk_velocity,
z = v.z
})
set_animation(self, "walk")
end
else
if me_y < p_y then
@ -1475,6 +1502,7 @@ minetest.register_entity(":"..name, {
y = 0.01,
z = v.z
})
set_animation(self, "walk")
elseif me_y > p_y then
@ -1483,6 +1511,7 @@ minetest.register_entity(":"..name, {
y = -0.01,
z = v.z
})
set_animation(self, "walk")
end
end
@ -1565,6 +1594,10 @@ minetest.register_entity(":"..name, {
full_punch_interval = 1.0,
damage_groups = {fleshy = self.damage}
}, nil)
if self.particles.on_hit then
local pl_pos = self.attack:getpos()
game.effects({x=pl_pos.x, y=pl_pos.y+0.5,z=pl_pos.z}, self.particles.texture, 0.3, "none", 0.75, 8)
end
end
end
end
@ -1649,7 +1682,7 @@ minetest.register_entity(":"..name, {
return
end
--local ent = minetest.add_entity(self.object:getpos(), "mobs:bar") --new bar for hp and shit
--local ent = minetest.add_entity(self.object:getpos(), "mobs.bar") --new bar for hp and shit
--server_tools.set_pvp(plname, "disabled")
--if ent ~= nil then
--ent:set_attach(self.object, "", {x = 0, y = 9, z = 0}, {x = 0, y = 0, z = 0})
@ -1903,13 +1936,13 @@ minetest.register_entity(":"..name, {
end,
})
end -- END mobs:register_mob function
end -- END mobs.register_mob function
-- global functions
mobs.spawning_mobs = {}
function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light,
function mobs.spawn_specific(name, nodes, neighbors, min_light, max_light,
interval, chance, active_object_count, min_height, max_height)
mobs.spawning_mobs[name] = true
@ -1988,9 +2021,9 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light,
end
-- compatibility with older mob registration
function mobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height)
function mobs.register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height)
mobs:spawn_specific(name, nodes, {"air"}, min_light, max_light, 30,
mobs.spawn_specific(name, nodes, {"air"}, min_light, max_light, 30,
chance, active_object_count, -31000, max_height)
end
@ -2002,7 +2035,7 @@ local c_brick = minetest.get_content_id("game:obsidianbrick")
local c_chest = minetest.get_content_id("game:chest_locked")
-- explosion (cannot break protected or unbreakable nodes)
function mobs:explosion(pos, radius, fire, smoke, sound)
function mobs.explosion(pos, radius, fire, smoke, sound)
radius = radius or 0
fire = fire or 0
@ -2100,7 +2133,7 @@ function mobs:explosion(pos, radius, fire, smoke, sound)
end
-- register arrow for shoot attack
function mobs:register_arrow(name, def)
function mobs.register_arrow(name, def)
if not name or not def then return end -- errorcheck
@ -2193,7 +2226,7 @@ function mobs:register_arrow(name, def)
end
-- Spawn Egg
function mobs:register_egg(mob, desc, background, addegg)
function mobs.register_egg(mob, desc, background, addegg)
local invimg = background
@ -2224,24 +2257,25 @@ function mobs:register_egg(mob, desc, background, addegg)
ent.owner = placer:get_player_name()
ent.tamed = true
end
if not ent.boss then
ent.lvl = math.random(1,60)
if minetest.is_singleplayer() then
ent.lvl = math.random(game.stats.lvl["singleplayer"], game.stats.lvl["singleplayer"]+4)
if ent.lvl < 1 then
ent.lvl = 1
elseif ent.lvl > 60 then
ent.lvl = 60
if minetest.is_singleplayer() then
ent.lvl = math.random(game.stats.lvl["singleplayer"], game.stats.lvl["singleplayer"]+4)
if ent.lvl < 1 then
ent.lvl = 1
elseif ent.lvl > 60 then
ent.lvl = 60
end
end
ent.hp_min = game.adjust_to_lvl(ent.hp_min, ent.lvl, ent.hp_max)
ent.hp_max = game.adjust_to_lvl(ent.hp_max, ent.lvl, ent.hp_max)
ent.damage = game.adjust_to_lvl(ent.damage, ent.lvl, ent.damage*4)
ent.exp = game.adjust_to_lvl(10, ent.lvl, (10+(ent.lvl/10)))
ent.visual_size = {x = 1+(ent.lvl/50), y = 1+(ent.lvl/50)}
ent.run_velocity = ent.run_velocity+(ent.lvl/75)-0.2
ent.collisionbox = {-0.3*((ent.lvl/25)+1), -0.01, -0.3*((ent.lvl/25)+1), 0.3*((ent.lvl/25)+1), 0.8*((ent.lvl/25)+1), 0.3*((ent.lvl/25)+1)}
end
ent.hp_min = game.adjust_to_lvl(ent.hp_min, ent.lvl, ent.hp_max)
ent.hp_max = game.adjust_to_lvl(ent.hp_max, ent.lvl, ent.hp_max)
ent.damage = game.adjust_to_lvl(ent.damage, ent.lvl, ent.damage*4)
ent.exp = game.adjust_to_lvl(10, ent.lvl, (10+(ent.lvl/10)))
ent.visual_size = {x = 1+(ent.lvl/50), y = 1+(ent.lvl/50)}
ent.object:set_hp(math.random(ent.hp_min, ent.hp_max))
ent.run_velocity = ent.run_velocity+(ent.lvl/75)-0.2
ent.collisionbox = {-0.3*((ent.lvl/25)+1), -0.01, -0.3*((ent.lvl/25)+1), 0.3*((ent.lvl/25)+1), 0.8*((ent.lvl/25)+1), 0.3*((ent.lvl/25)+1)}
-- if not in creative then take item
if not minetest.setting_getbool("creative_mode") then
itemstack:take_item()
@ -2254,7 +2288,7 @@ function mobs:register_egg(mob, desc, background, addegg)
end
-- capture critter (thanks to blert2112 for idea)
function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso, force_take, replacewith)
function mobs.capture_mob(self, clicker, chance_hand, chance_net, chance_lasso, force_take, replacewith)
if not self.child
and clicker:is_player()
@ -2297,7 +2331,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
if tool:is_empty() then
chance = chance_hand
elseif tool:get_name() == "mobs:net" then
elseif tool:get_name() == "mobs.net" then
chance = chance_net
@ -2305,7 +2339,7 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
clicker:set_wielded_item(tool)
elseif tool:get_name() == "mobs:magic_lasso" then
elseif tool:get_name() == "mobs.magic_lasso" then
chance = chance_lasso
@ -2334,7 +2368,7 @@ local mob_obj = {}
local mob_sta = {}
-- feeding, taming and breeding (thanks blert2112)
function mobs:feed_tame(self, clicker, feed_count, breed, tame)
function mobs.feed_tame(self, clicker, feed_count, breed, tame)
if not self.follow then
return false
@ -2418,7 +2452,7 @@ function mobs:feed_tame(self, clicker, feed_count, breed, tame)
local item = clicker:get_wielded_item()
-- if mob has been tamed you can name it with a nametag
if item:get_name() == "mobs:nametag"
if item:get_name() == "mobs.nametag"
and clicker:get_player_name() == self.owner then
local name = clicker:get_player_name()
@ -2483,7 +2517,7 @@ end)
-- Warthog by KrupnoPavel and Pinkysnow
mobs:register_mob("game:wartus", {
mobs.register_mob("game:wartus", {
type = "monster",
aname = "Wartus beast",
passive = false,
@ -2529,14 +2563,14 @@ mobs:register_mob("game:wartus", {
punch_end = 100,
},
on_rightclick = function(self, clicker)
mobs:feed_tame(self, clicker, 8, true, true)
mobs:capture_mob(self, clicker, 0, 5, 50, false, nil)
mobs.feed_tame(self, clicker, 8, true, true)
mobs.capture_mob(self, clicker, 0, 5, 50, false, nil)
end,
})
mobs:register_spawn("game:wartus", {"ethereal:mushroom_dirt", "default:dirt_with_dry_grass"}, 20, 10, 15000, 2, 31000)
mobs.register_spawn("game:wartus", {"ethereal:mushroom_dirt", "default:dirt_with_dry_grass"}, 20, 10, 15000, 2, 31000)
mobs:register_egg("game:wartus", "Wartus", "default_snow.png", 1)
mobs.register_egg("game:wartus", "Wartus", "default_snow.png", 1)
-- raw porkchop
minetest.register_craftitem("game:pork_raw", {

View File

@ -833,4 +833,5 @@ game.register("node", "walk_light", {
sunlight_propagates = true,
light_source = 13,
pointable = false,
})
})

View File

@ -175,7 +175,7 @@ function game.percent(player, stat_type, value)
elseif stat_type == "exp" then
local pl_c_lvl = game.stats.lvl[name]
local pl_exp = game.stats.exp[name]*10
local next_exp = ((8*pl_c_lvl) + game.exp_diff(pl_c_lvl))*(45 + (5*pl_c_lvl))
local next_exp = math.floor((((8*pl_c_lvl) + game.exp_diff(pl_c_lvl))*(45 + (5*pl_c_lvl)))/100)*100
return ((pl_exp/next_exp)*100)
elseif stat_type == "hp" then
if game.stats.hp[name] == "dead" then
@ -310,10 +310,10 @@ function game.add_lvl(player, lvl)
name = player:get_player_name()
end
if not game.stats.lvl[name] then return false, "Error "..name.." doesnt have any lvl yet!!!" end
lvl = game.stats.lvl[name] + lvl
if lvl > 60 then lvl = 60 end
game.stats.lvl[name] = lvl
game.stats.hp[name] = (game.adjust_to_lvl(20, game.stats.lvl[name],40)*(game.percent(player, "hp")/100))
lvl = game.stats.lvl[name] + lvl
if lvl > 60 then lvl = 60 end
game.stats.lvl[name] = lvl
game.stats.hp[name] = (game.adjust_to_lvl(20, game.stats.lvl[name],40)*(game.percent(player, "hp")/100))
return true, name.." had lvl added!"
end
@ -369,9 +369,10 @@ function game.is_next_lvl(name)
local next_exp = math.floor((((8*pl_c_lvl) + game.exp_diff(pl_c_lvl))*(45 + (5*pl_c_lvl)))/100)*100
if pl_exp >= next_exp then
game.stats.total_exp[name] = game.stats.total_exp[name] + (next_exp/10)
game.stats.exp[name] = pl_exp - next_exp
game.stats.exp[name] = (pl_exp - next_exp)/10
game.add_lvl(name, 1)
game.is_next_lvl(name)
minetest.chat_send_player(name, "You have leveled up!")
return game.add_lvl(name, 1)
end
end
@ -469,8 +470,7 @@ end
minetest.register_globalstep(function(dtime)
game.timer = game.timer + dtime
game.save_timer = game.save_timer + dtime
game.save_timer = game.save_timer + dtime
if game.save_timer >= 60 then
game.save_timer = 0
minetest.log(game.save_stats())

View File

@ -95,7 +95,7 @@ game.register_race("taurin", {
game.register_race("taurinf", {
mesh = "characteroxenf.b3d",
texture = {"oxen_skin.png^[colorize:#804000:100^oxen_overlay.png","default_cobble.png"}, --done
texture = {"oxen_skin.png^[colorize:#804000:100^oxen_overlay.png","default_cobble.png", "taurin_armor1.png"}, --done
collisionbox = {-0.3,-1.0,-0.3, 0.3,0.9,0.3},
physics = {speed=1, jump=1, gravity=1.0},
armor_groups = {fleshy=90},

View File

@ -0,0 +1,57 @@
--------------------------------------------------------------------------------------------
------------------------------- EpicNode Game ver: 0.1 :D ----------------------------------
--------------------------------------------------------------------------------------------
--Mod by Pinkysnowman --
--(c)2015 GNU LGPL v2.1 --
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
mobs.register_mob("game:ignitus", {
type = "monster",
boss = true,
lvl = 60,
exp = 2400,
aname = "Ignitus",
passive = false,
attack_type = "dogfight",
group_attack = false,
knock_back = 0,
reach = 8,
damage = 0,
hp_min = 60,
hp_max = 60,
armor = 100,
collisionbox = {-01.0, -1, -01.0, 01.0, 3.8, 01.0}, --??????
visual_size = {x = 1, y = 1},
visual = "mesh",
mesh = "ignitus.b3d",
textures = {
{"game_fireaxe.png", "ignitus.png", "ignitus_fire.png"},
},
particles = {y_adj=2.5,texture="ignitus_fire.png", on_hit=true},
makes_footstep_sound = false,
sounds = {
--random = "mobs_pig",
--attack = "mobs_pig_angry",
},
walk_velocity = 1,
run_velocity = 1,
view_range = 18,
drops = {
{name = "",
chance = 1, min = 1, max = 3},
},
animation = {
speed_normal = 15,
stand_start = 0,
stand_end = 79,
walk_start = 168,
walk_end = 187,
punch_start = 189,
punch_end = 198,
},
})
mobs.register_egg("game:ignitus", "Ignitus", "ignitus_fire.png", 1)
print("Ignitus loaded")

185
mods/game/runtime/rooms.lua Normal file
View File

@ -0,0 +1,185 @@
--------------------------------------------------------------------------------------------
------------------------------- EpicNode Game ver: 0.1 :D ----------------------------------
--------------------------------------------------------------------------------------------
--Mod by Pinkysnowman --
--©2015 GNU LGPL v2.1 --
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
game.register("node", "room_door", {
description = "Wooden Door",
drawtype = "mesh",
mesh = "door_closed.obj",
tiles = {"game_door.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {not_in_creative_inventory = 1},
sounds = game.sound("wood"),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, 0.3, 1.5, 2.5, 0.5}
},
collision_box = {
type = "fixed",
fixed = {-0.5, -0.5, 0.3, 1.5, 2.5, 0.5}
},
on_rightclick = function(pos, node, clicker, itemstack)
end,
})
game.register("node", "room_door_closed", {
description = "Wooden room_Door",
drawtype = "mesh",
mesh = "door_closed.obj",
tiles = {"game_door.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {door=1,not_in_creative_inventory=1},
sounds = game.sound("wood"),
after_place_node = function(pos, placer, itemstack, pointed_thing)
local meta = minetest.get_meta(os)
local name = placer:get_player_name()
meta:set_string("owner", name)
return itemstack
end,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, 0.3, 1.5, 2.5, 0.5}
},
collision_box = {
type = "fixed",
fixed = {-0.5, -0.5, 0.3, 1.5, 2.5, 0.5}
},
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "game:room_door_open"
minetest.swap_node(pos, node)
end
})
game.register("node", "room_door_open", {
description = "Wooden room_Door",
drawtype = "mesh",
mesh = "door_open.obj",
tiles = {"game_door.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {door=1,not_in_creative_inventory=1},
sounds = game.sound("wood"),
after_place_node = function(pos, placer, itemstack, pointed_thing)
local meta = minetest.get_meta(pos)
local name = placer:get_player_name()
meta:set_string("owner", name)
return itemstack
end,
drop = "game:room_door_closed",
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, 0.5, -0.3, 2.5, -1.5}
},
collision_box = {
type = "fixed",
fixed = {-0.5, -0.5, 0.5, -0.3, 2.5, -1.5}
},
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "game:room_door_closed"
minetest.swap_node(pos, node)
end
})
game.register("node", "room", {
description = "Room",
tiles = {"game_room.png"},
drawtype = "mesh",
mesh = "room.obj",
paramtype = "light",
is_ground_content = false,
sounds = game.sound("default"),
groups = {cracky = 2,not_in_creative_inventory = 1},
collision_box = {
type = "fixed",
--x z y x z y
fixed = {{-1.3,0.5,1.15,-1.5,4.5,0.5},
{-1.3,0.5,-2.55,-1.5,4.5,-2.5},
{-1.5,-0.5,-0.5,0.5,0.5,0.5},
{-1.5,0.5,1.15,2.5,4.5,0.95},}
},
})
game.register("node", "fireplace", {
description = "fireplace",
tiles = {"default_stone.png"},
drawtype = "mesh",
mesh = "fireplace.obj",
paramtype = "light",
is_ground_content = false,
sounds = game.sound("default"),
groups = {not_in_creative_inventory = 1},
collision_box = {
type = "fixed",
--x z y x z y
fixed = {{-1.5,-0.5,-0.5,0.5,0.5,0.5},
{-0.5,0.5,-1,0.5,1.5,1},
{-0.5,1.5,-1,0.5,4.5,1},
{-0.5,0.5,-0.3,0.5,4.5,0.3},}
},
selection_box = {
type = "fixed",
--x z y x z y
fixed = {{-1.5,-0.5,-0.5,0.5,0.5,0.5},
{-0.5,0.5,-1.5,0.5,4.5,1.5},}
},
})
game.register("node", "room_mantel", {
description = "mantel",
tiles = {"game_door.png"},
drawtype = "mesh",
mesh = "fireplacemantel.obj",
paramtype = "light",
is_ground_content = false,
groups = {not_in_creative_inventory = 1},
pointable = false,
})
game.register("node", "room_block", {
description = "room block",
tiles = {"default_cobble.png"},
is_ground_content = false,
paramtype = "light",
light_source = 3,
groups = {not_in_creative_inventory = 1},
})
game.register("node", "room_air", {
description = "room air",
is_ground_content = false,
paramtype = "light",
drawtype = "airlike",
light_source = 3,
pointable = false,
groups = {not_in_creative_inventory = 1},
})
game.register("node", "room_table", {
description = "table",
tiles = {"game_tree.png"},
drawtype = "mesh",
mesh = "table.obj",
paramtype = "light",
is_ground_content = false,
groups = {not_in_creative_inventory = 1},
})
game.register("node", "room_plac", {
description = "room placer",
tiles = {"default_cobble.png^default_torch_on_floor.png"},
is_ground_content = false,
paramtype = "light",
light_source = 3,
groups = {cracky = 1},
after_place_node = function(pos, placer, itemstack, pointed_thing)
local path = minetest.get_modpath("game") .. "/schems/room.mts"
minetest.place_schematic({x = pos.x - 4, y = pos.y - 1, z = pos.z - 5}, path, 0, nil, true)
return itemstack
end,
})

BIN
mods/game/schems/room.mts Normal file

Binary file not shown.