@@ -147,68 +147,6 @@ bool GameReference::Initialize() {
147147 m_GameWorld = new GameWorld (this , 50 , 30 );
148148 m_Controllers = new GameControllers ();
149149
150- Assets* decals = Assets::Get ();
151-
152- Hands::ms_FistTexture = decals->GetTexture (" entities.fist" );
153- ItemEntity::ms_TextureGlock = decals->GetTexture (" entities.items.glock" );
154- ItemEntity::ms_TextureShotgun = decals->GetTexture (" entities.items.shotgun" );
155- ItemEntity::ms_TextureBurst = decals->GetTexture (" entities.items.burst" );
156- ItemEntity::ms_TextureSniper = decals->GetTexture (" entities.items.sniper" );
157- ItemEntity::ms_TexturesMinigun[0 ] = decals->GetTexture (" entities.items.minigun1" );
158- ItemEntity::ms_TexturesMinigun[1 ] = decals->GetTexture (" entities.items.minigun2" );
159- ItemEntity::ms_TexturesMinigun[2 ] = decals->GetTexture (" entities.items.minigun3" );
160- ItemEntity::ms_TexturesMinigun[3 ] = decals->GetTexture (" entities.items.minigun4" );
161- Projectile::ms_TextureGlock = decals->GetTexture (" entities.projectiles.glockbullet" );
162- Projectile::ms_TextureBurst = decals->GetTexture (" entities.projectiles.burstbullet" );
163- Projectile::ms_TextureShotgun = decals->GetTexture (" entities.projectiles.shotgunbullet" );
164- Projectile::ms_TextureSniper = decals->GetTexture (" entities.projectiles.shotgunbullet" );
165- Projectile::ms_TextureMinigun = decals->GetTexture (" entities.projectiles.minigunbullet" );
166- AmmoBox::ms_TextureGlock = decals->GetTexture (" entities.glockammo" );
167- AmmoBox::ms_TextureShotgun = decals->GetTexture (" entities.shotgunammo" );
168- AmmoBox::ms_TextureBurst = decals->GetTexture (" entities.burstammo" );
169- AmmoBox::ms_TextureMinigun = decals->GetTexture (" entities.minigunammo" );
170- Crate::ms_TextureBox = decals->GetTexture (" entities.ammocrate" );
171- Crate::ms_TextureBreakingBox1 = decals->GetTexture (" entities.rts_crate_breaking_1" );
172- Crate::ms_TextureBreakingBox2 = decals->GetTexture (" entities.rts_crate_breaking_2" );
173- Error::ms_TextureErrorInvincible = decals->GetTexture (" entities.invincible" );
174- Error::ms_TextureErrorSpiky = decals->GetTexture (" entities.cactus" );
175- Error::ms_TextureErrorSlowDown = decals->GetTexture (" entities.clock" );
176- Error::ms_TextureErrorDisorianted = decals->GetTexture (" entities.disorianted" );
177- Error::ms_TextureErrorHealersParadise = decals->GetTexture (" entities.healer" );
178- Error::ms_TextureErrorConfusingHP = decals->GetTexture (" entities.confusion" );
179- Error::ms_TextureErrorRanged = decals->GetTexture (" entities.ranged" );
180- Error::ms_TextureError = decals->GetTexture (" entities.golden_apple" );
181-
182- // Load sounds
183- Sound* Basic_Death = decals->GetSound (" basic_death" );
184- Sound* FailReloadSound = decals->GetSound (" failreload" );
185- Sound* GlockShootSound = decals->GetSound (" glockshoot" );
186- GlockShootSound->SetVolume (64 ); // max 128
187- Sound* GlockClickSound = decals->GetSound (" gunclick" );
188- GlockClickSound->SetVolume (32 ); // max 128
189- Sound* ShotgunShootSound = decals->GetSound (" shotgunshoot" );
190- Sound* BurstShootSound = decals->GetSound (" shootburst" );
191- Sound* ShotgunReloadSound = decals->GetSound (" shotgunreload" );
192-
193- WeaponGlock::ms_ShootSound = GlockShootSound;
194- WeaponGlock::ms_ClickSound = FailReloadSound;
195- WeaponGlock::ms_ReloadSound = ShotgunReloadSound;
196- ProjectileWeapon::ms_NoAmmo = GlockClickSound;
197- WeaponShotgun::ms_ShootSound = ShotgunShootSound;
198- WeaponShotgun::ms_ClickSound = FailReloadSound;
199- WeaponShotgun::ms_ReloadSound = ShotgunReloadSound;
200- WeaponBurst::ms_ShootSound = BurstShootSound;
201- WeaponBurst::ms_ClickSound = FailReloadSound;
202- WeaponBurst::ms_ReloadSound = ShotgunReloadSound;
203- WeaponSniper::ms_ShootSound = nullptr ;
204- WeaponSniper::ms_ClickSound = nullptr ;
205- WeaponSniper::ms_ReloadSound = nullptr ;
206- WeaponMinigun::ms_ShootSound = BurstShootSound;
207- WeaponMinigun::ms_ClickSound = FailReloadSound;
208- WeaponMinigun::ms_ReloadSound = ShotgunReloadSound;
209- Crate::ms_BoxSound = decals->GetSound (" boxhit" );
210- Crate::ms_HitSound = decals->GetSound (" entities.character.hurt1" );
211-
212150 m_Draw->SetWorld (m_GameWorld);
213151 Character::ms_BotNamePlate = new TextSurface (m_GameWorld->GameWindow ()->Assetz (),
214152 m_GameWorld->GameWindow ()->Assetz ()->TextHandler ()->GetMainFont (),
0 commit comments