Impulse 81 broken

D

Demaratus

Guest
The reflective ball that the code calls for is not being found. I remember seeing it in the model view once, but I can't find it now. Anyone know where in the .gcf's the model is so I can copy it to the right directory so impulse 81 will work for me? I'd like to test my cubemaps out.
 
hmm, I've no idea where its located tbh.. but it is annoying how everything is everywhere and not where its supposed to be.

Mind you even if you find it, it might still do the error thing, a number of models that do exist have been doing that for some weird reason.

can always use the scope in the crossbow if your really stuck. Or make a new model with a mirror finish to see how it looks on that and carry it about, bounce it around like a ball :D
 
yes, I suppose I could. Guess it gives me an excuse to learn some xsi and how to make props, since there is no appropriate brush texture to use.

I tried looking for impulse 81 in the code, but couldn't find it. Couldn't find impulse 101 for that matter. Are they in the code, or are they commands that are in some text file? It would be convenient to be able to program my own impulse commands.

Finally, I was mildly annoyed about these problems we keep running into, but I understand that Valve gave us what they used; if we were ever going to get the sdk in the next few years, they were going to have to ship it in a less-than-perfect state. But, I'd rather be frustrated and using it than trolling boards waiting for it to come out=)
 
Demaratus said:
yes, I suppose I could. Guess it gives me an excuse to learn some xsi and how to make props, since there is no appropriate brush texture to use.

I tried looking for impulse 81 in the code, but couldn't find it. Couldn't find impulse 101 for that matter. Are they in the code, or are they commands that are in some text file? It would be convenient to be able to program my own impulse commands.

Finally, I was mildly annoyed about these problems we keep running into, but I understand that Valve gave us what they used; if we were ever going to get the sdk in the next few years, they were going to have to ship it in a less-than-perfect state. But, I'd rather be frustrated and using it than trolling boards waiting for it to come out=)
you can code your own commands.. not sure how you'd do that, qckbeam is probably the one to answer that one.
 
'beam, if you're around, I am interested in knowing how to code my own impulse commands. I can't seem to find any impulse stuff in the source code outside of a few comments, so I'm not sure how to proceed.
 
The impulse commands are in player.cpp files, too many to list them all, but:

Code:
switch ( iImpulse )
	{
	case 76:
		{
			if (!giPrecacheGrunt)
			{
				giPrecacheGrunt = 1;
				Msg( "You must now restart to use Grunt-o-matic.\n");
			}
			else
			{
				Vector forward = UTIL_YawToVector( EyeAngles().y );
				Create("NPC_human_grunt", GetLocalOrigin() + forward * 128, GetLocalAngles());
			}
			break;
		}

and

Code:
case 100:
        // temporary flashlight for level designers
        if ( FlashlightIsOn() )
		{
			FlashlightTurnOff();
		}
        else 
		{
			FlashlightTurnOn();
		}
		break;

Code:
case 81:

		GiveNamedItem( "weapon_cubemap" );
		break;

etc

As for coding your own commands, it depends what you want to acheive. Im not all that good with coding myself, but if you just want to spawn things, it shouldnt be too hard.

EDIT: Theres a good example in the Coding forum lol :eek:
 
uh no gcf file here, if you create a new mod you gain access to the source code for the client.dll and server.dll.
 
Impulse 81

I've tested Impulse 81 on each type of game and only Single-Player HL2 allows for Impulse 81 to work. CSS and HL2DM cannot find the weapon_cubemap.

And unfortunately, taking out a weapon seems to disable the cubemaps. Also, typing impulse 81 no longer works after taking out a weapon. So, I have to reload the map if I want the weapon_cubemap to work again.

Has anyone else had this problem?
 
importon said:
How are you guys seeing into the .gcf files?
Off-topic, but you can download a program called GCFscape here. Just make sure you have Microsoft's .NET Framework installed, otherwise it won't work.
 
Back
Top