Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

Reply
 
Thread Tools Display Modes
Old 08-11-2012, 12:31 PM   #1
mac1467
 
Join Date: Dec 2004
Reputation: 0
Posts: 64
Question NPC_Strider MiniGun

In game, HL2DM the Strider's minigun isn't working properly. I believe that the Strider has aquired it's target and is firing the minigun. The problem is that there are no bullets or flash. I even wonder if bullet damage has been defined.

I propose that the minigun is working but it's got no ammo or flash defined so it's shooting blanks.

Looking at the code from cpp file:

define_field (m_miniGunAmmo, field integer)
define_field (m_miniGunDirectAmmo, field integer)

m_miniGunAmmo = GetAmmoDef()->Index("StriderMinigun")
m_miniGunDirectAmmo + GetAmmoDef()->Index("StriderMinigunDirect")
m_pMinigun->Init()

Muzzle Flash_Type_Strider

Once again, I propose that the minigun is working but it's got no ammo or flash defined so it's shooting blanks.

Where to find "StriderMinigun" ammo?

Where to find "StriderMinigunDirect" ammo?

Where to find "Muzzle Flash_Type_Strider"?
mac1467 is offline  
Reply With Quote
Old 08-11-2012, 11:39 PM   #2
CrAzYpotpie
 
Join Date: Sep 2010
Reputation: 35
Posts: 462
I would have pointed you to the direct location until you made it clear that you don't know about the search function in most all C++ compilers.

Your last 3 questions (Where to find ?), just take those key terms that you already know, and search your whole project for them. If you are using Visual Studio, by default there will be a search bar up top (With a button next to it that looks like a folder and binoculars, labelled "Find In Files".

Enter your keywords there, and voila, you should be finding where those terms are defined in no time!
CrAzYpotpie is offline   Reply With Quote
Old 08-12-2012, 03:04 PM   #3
mac1467
 
Join Date: Dec 2004
Reputation: 0
Posts: 64
Unhappy

Crazypotpie, thankyou for your answer. It got me to thinking.

I don't have visual studio but did do a search and found the files for the StriderMuzzleFlash. Being that the gcf files are dwindling away I was still fortunate enough to find the files: materials/effects/strider_muzzle.vmt(vtf) and materials/effects/strider_tracer.vmt(vtf). The files are to be found in the hl2 materials directory.

After importing them into the bsp file I didn't get any positive results. I would think the StriderMuzzleFlash would be the easiest to do and it's resulting in failure.

Being that the flash and tracer are not working I think the path is incorrect. If Visual Studio can verify the correct paths...we would be moving foward to fixing the problem.

Using an editor it was determined that the vtf was invalid...invalid? So, I replaced the vtf with a valid one and still no positive results. Being that the textures are appearing in the sdk I am going to believe the path and texture is correct.

Today, 8/14/2012, I currently have the flash working!!! The minigun is firing and the muzzle flash is appearing. Although, the tracer and bullets are not there...the strider is still firing blanks.

The textures do not have to be imported and the path is correct. The fix will not be posted until I can get the bullets and tracer working.

Any help is needed in researching if you got the time.

Last edited by mac1467: 08-14-2012 at 09:19 AM. Reason: update
mac1467 is offline   Reply With Quote
Old 08-16-2012, 09:51 AM   #4
mac1467
 
Join Date: Dec 2004
Reputation: 0
Posts: 64
Unhappy

Welcome to club Murphy.

Something went wrong and the flash appeared. It is not fixed as I thought through console variables. Instead, in the process of fixing up a new map, I accidently created a leak. The leak is causing the minigun muzzle flash to appear. I fixed the leak and the flash goes away.

I am at a loss to understand why the flash is appearing when there is a leak in the map. If anyone has any creative ideas it would be of interest to hear them.
mac1467 is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 02:09 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.