Author Topic: [Weapons] Half-Life 1 Weapons Megathread (update June 30th)  (Read 15963 times)

Why the forget are you allowed to reload when your revolver is full?

Did the last update not fix this?

Did the last update not fix this?
You were able to do this in the original half life, too.

I'm tempted to make a pref for that but I also think it would just be a waste of everyone's time, so if you want to make it so that you can reload when full, go to package.cs and change this:
Code: [Select]
function serverCmdLight(%client)
{
%player = %client.player;
%image = %player.getMountedImage(0);

if(%image.item.ghostToReload)
{
//%player.setImageAmmo(0, 0);
if(!%image.handleReload(%player, 0))
return Parent::serverCmdLight(%client);
}
else
{
Parent::serverCmdLight(%client);
}
}
To this:
Code: [Select]
function serverCmdLight(%client)
{
%player = %client.player;
%image = %player.getMountedImage(0);

if(%image.item.ghostToReload)
{
%player.setImageAmmo(0, 0);
}
else
{
Parent::serverCmdLight(%client);
}
}

Please note that if you do that you will never be able to toggle your light when you have a HL1 weapon out.

It's impressive that people are still putting so much effort into this game. Nice job!