#31 2018-12-14 17:35:50

bud
maestro
Reputation: +1842
Location: shangri la
Registered: 2012-07-07
Posts: 3,960
Website
Windows 7 Firefox 64.0

Re: Some useful (and not so useful) console commands I tested

Type the command with no value and press enter, the server output gives the current (original) state witch was 5 in my case. This method works with many commands.

Offline

    Positive reputation 0   Negative reputation 0

#32 2018-12-14 19:53:55

Black Mamba
Member
Canada
Reputation: +1497
Registered: 2012-12-01
Posts: 4,362
Windows 10 Chrome 71.0

Re: Some useful (and not so useful) console commands I tested

bud wrote:

Type the command with no value and press enter, the server output gives the current (original) state witch was 5 in my case. This method works with many commands.

Entering the command in the console gives me the unauthorized method error, how can I circumvent this? Debugger?

EDIT: Nvm, figured it out. Some pretty interesting info from the other commands like game.interpolationtime (default is 100) and game.extrapolationtime (default is 1200).

Last edited by Black Mamba (2018-12-14 19:57:28)

Offline

    Positive reputation 0   Negative reputation 0

#33 2018-12-27 21:04:51

Black Mamba
Member
Canada
Reputation: +1497
Registered: 2012-12-01
Posts: 4,362
Windows 10 Chrome 71.0

Re: Some useful (and not so useful) console commands I tested

game.addPlayerToBuddyListByName string float float float

This command adds players to your buddylist by nickname. Only supports one argument, the name of the player. Doesn't seem to work for player names that have spaces, like Black Mamba. For players with spaces in their names, use the ID of the player instead with this command: game.addPlayerToBuddyList

Last edited by Black Mamba (2018-12-27 21:17:11)

Offline

    Positive reputation 0   Negative reputation 0

#34 2018-12-28 06:17:06

Russ
Jack-of-all-trades
United States
Reputation: +136
Registered: 2015-06-26
Posts: 390
Ubuntu Chromium 71.0

Re: Some useful (and not so useful) console commands I tested

If you want spaces, try using quotes.

game.addPlayerToBuddyListByName "Danny Devito"

Offline

    Positive reputation 0   Negative reputation 0

#35 2020-06-03 16:37:29

Black Mamba
Member
Canada
Reputation: +1497
Registered: 2012-12-01
Posts: 4,362
Windows 10 Firefox 77.0

Re: Some useful (and not so useful) console commands I tested

So the BF1942 console command database is down it seems hmm

Offline

    Positive reputation 0   Negative reputation 0

#36 2020-11-11 01:30:19

Black Mamba
Member
Canada
Reputation: +1497
Registered: 2012-12-01
Posts: 4,362
Windows 10 Chrome 86.0

Re: Some useful (and not so useful) console commands I tested

Any idea what game.intensityScale does and how it's used?

Offline

    Positive reputation 0   Negative reputation 0

Board footer