From 81cac14c901052bcf31e83302175db76cce19fd5 Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 10 Nov 2013 11:41:54 -0500 Subject: [PATCH] Worked on a few things --- models/TestCar.tcn | Bin 884 -> 1078 bytes src/dark/core/client/models/ModelTestCar.java | 196 ++++++++++++++++++ .../core/client/renders/RenderTestCar.java | 54 ++--- src/dark/core/prefab/EntityAdvanced.java | 58 +++++- .../core/prefab/vehicles/EntityDrivable.java | 18 +- 5 files changed, 287 insertions(+), 39 deletions(-) create mode 100644 src/dark/core/client/models/ModelTestCar.java diff --git a/models/TestCar.tcn b/models/TestCar.tcn index eec25561931211b5301bcb3c0fde2ae1130ee028..803803b5ad511a7fceb9e6d43ea0f551f03c76a0 100644 GIT binary patch literal 1078 zcmWIWW@Zs#U|`^2(2B}(PL;bLRK?7|FvEy}fs;XnAvZrIHAk-^H;0Qs0jP+9fssLi z;n$i)AqMx(F{0CNXUFExHV|ohum0BFWv7{PTMK`uQt8^L(5&sNdaq@c^UYCN!=j`R zyE}eA^FonJVLzH8!%|h(7TM*8)-(vQjVh{6x6#riK+U?ofS_40B zIojQ#7r_>LYnJuq>9v)s$JJih(ws?euzcw*|SpWJh;<8q9Od(8O9 zSZw;`TOVap=DYU)h&1o4{;cp^>(nNb?B%BO{GNS(YSjLy^264vCwKULULmzPP57|F ztj8~VS5K~(EH?LN_8Y%zxnIOH|1y4L^a;b2c~^av-1RQi?z+V)!=n#mhXz@HD6at zT|aj~X$rGxqPi@{td$OvnN9KnA2Y0-Vlpq6F>97K+g8&J27O`Kr4K&-FTBhXWOr8X zQNhG_d@OfF!n0%8v#$s&&FSYdu`J=`e$m4dV)u5_;<{7IlFnTf*mPPWWDe&8p07C? z7c9)?KV2!so)H`^l6hLkw`=yM8aaEnS1G;@oJ*Hf70EoEH6x8jG5_iH1u>>mx>hdK zzi@XgqeyAe3gh46d9$o#O4;%}*VesS!?}?qsGRe(ljqzGk4`Ntk&k=f^<>I9&!xrk zkb;**^nzP~lJGSpx zs_Ju(oLpBh@82ss*7r91cq3wr`uKfToK^eB+xYo)wTjK&O|v3u@BT_Z&UbKsn!(zI z)m5dRT~e>E|2|{y^_}H&4?45d>zU=S+WDp5UL$E9Rs_|FjF&B&z7fIAz5vo4$INLmYvDQvxA9&;jJ7411EzDLvDUbYK~q-ZVnfN0#FeH10#b3 zgWG`|A-#L&7}4psGXwKy8web~um0A0fz50oXCa}JuCIi)uG*4wRVerJJ)RgLGp32Y zyOzwaV_zt8$?d}dHGij0rFZZ0e;3qQC7+r0AXn+azNQI|GO^#!Xm5VLr+#_no3!~k zNe}-t{4Gy=;wCoZBg-dp1R`i0aYJoy`_`4dikd9vEaTddnDT9$i@!~@;5%TzA))AANxmj z1EZIxuBkg$FXfN9eJ%EsqxtWB&%f8^-FCipS!ti^+U~pGy=0eu7GjN#yK_Feadw7m zQ^_wDdyCTaciwB$staFz+Y>9e<4RHI_OGi#pRG~J+cVd4_jKbAk4k#n3-T&w_+=k0 zU$&2z??=4&p~;oYX0kgSS)`+FBl`6DRWGMcb87NJMff-JY?@O#dxqM@<7YHtL?2GK zSa~KsF+8OE0jG?Wf|_CbnG$^oUrw&N<;D`8T$=EC=be%nn$41W^Cw50d9i^rjd`j;aq|BgiOYo2uB_8f z-*WJkrIPSfhu7ccc1=hVwsO1lN;_&X@4=3MqYj&`E?i+)Tj-h15EXSHa^^5(7xyS%z- zjpuov?eJJO#lm=#@Xa%)*8BIwzM5mpQNi=z``>Bn4<5X!Gkd4PKhC(I-1xF-p_1vJ z6`1@#ga*AR`g5u0vUA>Z{s3=ACS3;HnE;&d;RH!pBEXxK4U%mb8KQv 0.0F) + { + GL11.glRotatef(MathHelper.sin(f2) * f2 * f3 / 10.0F * (float) ((EntityAdvanced) entity).getForwardDirection(), 1.0F, 0.0F, 0.0F); + } + } float f4 = 0.75F; GL11.glScalef(f4, f4, f4); GL11.glScalef(1.0F / f4, 1.0F / f4, 1.0F / f4); - this.bindEntityTexture(par1EntityBoat); + this.bindEntityTexture(entity); GL11.glScalef(-1.0F, -1.0F, 1.0F); - this.modelBoat.render(par1EntityBoat, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); + this.modelBoat.render(entity, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); GL11.glPopMatrix(); } - protected ResourceLocation getBoatTextures(EntityDrivable par1EntityBoat) - { - return boatTextures; - } - - /** Returns the location of an entity's texture. Doesn't seem to be called unless you call - * Render.bindEntityTexture. */ + @Override protected ResourceLocation getEntityTexture(Entity par1Entity) { - return this.getBoatTextures((EntityDrivable) par1Entity); - } - - /** Actually renders the given argument. This is a synthetic bridge method, always casting down - * its argument and then handing it off to a worker function which does the actual work. In all - * probabilty, the class Render is generic (Render