Disabling forced Weapon Bobbing on exiting

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
The_Spartan
 
Posts: 79
Joined: Fri Oct 12, 2012 1:12 pm
Location: Italy
Contact:

Disabling forced Weapon Bobbing on exiting

#1

Post by The_Spartan » Fri Feb 06, 2015 4:14 pm

Hi guys, two years I made a map for Wolfenstein, having found some files on the internet, here it is:
phpBB [video]
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:

Code: Select all

script 1 ope
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?

User avatar
Sean
IRC Operator
Posts: 978
Joined: Thu Jan 16, 2014 9:09 pm
Location: United Kingdom
Clan: Zandronum
Clan Tag: [Za]
Contact:

RE: Disabling forced Weapon Bobbing on exiting

#2

Post by Sean » Fri Feb 06, 2015 5:54 pm

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>");
}
<capodecima> i dont say any more word without my loyer jenova

User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

RE: Disabling forced Weapon Bobbing on exiting

#3

Post by Ænima » Fri Feb 06, 2015 7:12 pm

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.
Last edited by Ænima on Fri Feb 06, 2015 7:14 pm, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
The_Spartan
 
Posts: 79
Joined: Fri Oct 12, 2012 1:12 pm
Location: Italy
Contact:

RE: Disabling forced Weapon Bobbing on exiting

#4

Post by The_Spartan » Fri Feb 06, 2015 10:37 pm

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...

User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

RE: Disabling forced Weapon Bobbing on exiting

#5

Post by Ænima » Fri Feb 06, 2015 10:43 pm

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.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Post Reply