Page 1 of 1
Disabling forced Weapon Bobbing on exiting
Posted: Fri Feb 06, 2015 4:14 pm
by The_Spartan
Hi guys, two years I made a map for Wolfenstein, having found some files on the internet, here it is:
The [video] tag is deprecated, please use the [media] tag
Now i'm making the second part, adding some enhancements. One of this, is stopping the weapon bob even by testing the map on Doom Builder or using Zandronum . I did so:
n
{
ConsoleCommand(" movebob 0");
}[/code]
This, obviously, changes the cvar FOREVER, even in other games and with other WADs. What can I do to avoid this? Can I disable it when i'm leaving a game? Is there another way i can do this?
RE: Disabling forced Weapon Bobbing on exiting
Posted: Fri Feb 06, 2015 5:54 pm
by Sean
1. You should use OPEN CLIENTSIDE scripts. This make sure the script runs on the client.
2. You can use UNLOADING CLIENTSIDE scripts to do stuff when the map is unloading on the client.
Like so:
Code: Select all
Script 2 UNLOADING CLIENTSIDE{
ConsoleCommand("movebob <whatever>");
}
RE: Disabling forced Weapon Bobbing on exiting
Posted: Fri Feb 06, 2015 7:12 pm
by Ænima
Orrrrr you could make a patch that puts +WEAPON.DONTBOB on every weapon. Pretty simple. It's a flag that disables bobbing for that weapon.
ConsoleCommand is hacky and unnecessary in this case, and the word on the street is ConsoleCommand is getting dropped from Zandronum altogether.
RE: Disabling forced Weapon Bobbing on exiting
Posted: Fri Feb 06, 2015 10:37 pm
by The_Spartan
None of yours solutions worked. The first seems to do nothing, the second (Enima): WEAPON.DONTBOB isn't compatible with Zandronum or doesn't make any difference...
RE: Disabling forced Weapon Bobbing on exiting
Posted: Fri Feb 06, 2015 10:43 pm
by Ænima
The_Spartan wrote:
None of yours solutions worked. The first seems to do nothing, the second (Enima): WEAPON.DONTBOB isn't compatible with Zandronum or doesn't make any difference...
Wha? You sure? This flag has been supported since Skulltag. Try just +DONTBOB instead of +Weapon.DONTBOB. And remember the plus sign because it's a flag, not a property.