#1 2014-05-28 22:32:05

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

First-person spectator camera

Any takers in trying to figure this out? I'm pretty sure it's a hardcoded setting as I've found no clue as to how to force the spectator camera (not the freecam view) to take the first-person perspective when spectating players.

Would be a very nice feature to have: you could see how players aim, and most importantly it would be easier to detect potential aimboters/map hackers.

Offline

    Positive reputation 0   Negative reputation 0

#2 2014-05-28 23:12:20

tuia
BFSoldier
Portugal
Reputation: +1152
Location: Lisbon
Registered: 2012-02-20
Posts: 6,412
Website
Windows 7 Opera 11.64

Re: First-person spectator camera

Nice idea! I will take a look at it. By the way, how do you make soldiers have 3rd person camera view?

Offline

    Positive reputation 0   Negative reputation 0

#3 2014-05-29 00:23:55

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

Re: First-person spectator camera

It's easy. In the Objects.rfa, open the "CommonSoldierData.inc" file and change the "ObjectTemplate.SetIsFirstPersonPart 1" line to "ObjectTemplate.SetIsFirstPersonPart 0". There's a bunch of other parameters that enable the different camera views the soldier uses when in a vehicle (F10-F11-F12 views), but on foot.

Offline

    Positive reputation 0   Negative reputation 0

#4 2014-05-29 11:18:47

ziba128
Member
Reputation: +488
Location: EaglesNest_Safe
Registered: 2012-10-14
Posts: 1,290
Website
Windows Vista Internet Explorer 9.0

Re: First-person spectator camera

The Observer wrote:

It's easy. In the Objects.rfa, open the "CommonSoldierData.inc" file and change the "ObjectTemplate.SetIsFirstPersonPart 1" line to "ObjectTemplate.SetIsFirstPersonPart 0".

What does it do? I don't see any difference between before and after
External views for soldiers are enabled by this

ObjectTemplate.active SoldierCamera
ObjectTemplate.CVMInside 1
ObjectTemplate.CVMChase 1
ObjectTemplate.CVMFrontChase 1
ObjectTemplate.CVMFlyBy 1
ObjectTemplate.CVMTrace 0
ObjectTemplate.CVMExternTrace 0

CVMTrace is crappy, CVMExternTrace doesn't seem to work, so I put 0 there

Last edited by ziba128 (2014-05-29 12:22:00)

Offline

    Positive reputation 0   Negative reputation 0

#5 2014-05-29 11:20:35

Whoopz
Member
Denmark
Reputation: +126
Location: Copenhagen
Registered: 2013-12-05
Posts: 412
Website
Windows 8 Chrome 35.0

Re: First-person spectator camera

tuia wrote:

Nice idea! I will take a look at it. By the way, how do you make soldiers have 3rd person camera view?

All custom maps, and mods, have 3rd person view on foot by default.

Last edited by Whoopz (2014-05-29 11:20:53)

Offline

    Positive reputation 0   Negative reputation 0

#6 2014-05-29 11:25:23

ziba128
Member
Reputation: +488
Location: EaglesNest_Safe
Registered: 2012-10-14
Posts: 1,290
Website
Windows Vista Internet Explorer 9.0

Re: First-person spectator camera

Whoopz wrote:
tuia wrote:

Nice idea! I will take a look at it. By the way, how do you make soldiers have 3rd person camera view?

All custom maps, and mods, have 3rd person view on foot by default.

Really? smile Show me a screenshot from any custom map (except Xhaos_Lake) with 3p view of soldier

Last edited by ziba128 (2014-05-29 11:26:48)

Offline

    Positive reputation 0   Negative reputation 0

#7 2014-05-29 13:23:23

Whoopz
Member
Denmark
Reputation: +126
Location: Copenhagen
Registered: 2013-12-05
Posts: 412
Website
Windows 8 Chrome 35.0

Re: First-person spectator camera

ziba128 wrote:
Whoopz wrote:
tuia wrote:

Nice idea! I will take a look at it. By the way, how do you make soldiers have 3rd person camera view?

All custom maps, and mods, have 3rd person view on foot by default.

Really? smile Show me a screenshot from any custom map (except Xhaos_Lake) with 3p view of soldier

This is the do the harlem shake map, there's all 4 camera views:
And yes, this is a custom map, no mods are required to play this.

http://www.xfire.com/screenshots/129781984
http://www.xfire.com/screenshots/129781985
http://www.xfire.com/screenshots/129781986
http://www.xfire.com/screenshots/129781987

Offline

    Positive reputation 0   Negative reputation 0

#8 2014-05-29 14:07:10

ziba128
Member
Reputation: +488
Location: EaglesNest_Safe
Registered: 2012-10-14
Posts: 1,290
Website
Unknown Opera 11.10

Re: First-person spectator camera

Lol Whoopz, I made those Harlem Shake maps big_smile
I used the code from my previous post there. But I don't know any other custom map with 3p views enabled, except Xhaos_Lake as I said smile
All mods including FH, DC, BG42 etc. use the same code

Offline

    Positive reputation 0   Negative reputation 0

#9 2014-05-29 16:14:55

Whoopz
Member
Denmark
Reputation: +126
Location: Copenhagen
Registered: 2013-12-05
Posts: 412
Website
Windows 8 Chrome 35.0

Re: First-person spectator camera

ziba128 wrote:

Lol Whoopz, I made those Harlem Shake maps big_smile
I used the code from my previous post there. But I don't know any other custom map with 3p views enabled, except Xhaos_Lake as I said smile
All mods including FH, DC, BG42 etc. use the same code

Haha I will take my statement back then! All the mods I've played, I've been able to use 3rd person though, such as Battlefield Pirates, Interstate 82 and the Zombie mod for 1.3 from I can remember.

Me and my friends made some maps once, and I seem to remember also being able to do it on those? ..

Last edited by Whoopz (2014-05-29 16:18:14)

Offline

    Positive reputation 0   Negative reputation 0

#10 2014-05-29 18:25:28

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

Re: First-person spectator camera

ziba128 wrote:

CVMTrace is crappy, CVMExternTrace doesn't seem to work, so I put 0 there

If i remember right one of the codes is for the artillery when they got a target spotted by sniper, propably thats the "trace" part in  CVMExternTrace

Also this extra cameras break the soldiers weapon reload if you change to one of those cameras when reloading. That may be why they didnt use them in the finished game.

Offline

    Positive reputation 0   Negative reputation 0

#11 2014-05-30 00:03:01

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

Re: First-person spectator camera

ziba128 wrote:
The Observer wrote:

It's easy. In the Objects.rfa, open the "CommonSoldierData.inc" file and change the "ObjectTemplate.SetIsFirstPersonPart 1" line to "ObjectTemplate.SetIsFirstPersonPart 0".

What does it do? I don't see any difference between before and after
External views for soldiers are enabled by this

ObjectTemplate.active SoldierCamera
ObjectTemplate.CVMInside 1
ObjectTemplate.CVMChase 1
ObjectTemplate.CVMFrontChase 1
ObjectTemplate.CVMFlyBy 1
ObjectTemplate.CVMTrace 0
ObjectTemplate.CVMExternTrace 0

CVMTrace is crappy, CVMExternTrace doesn't seem to work, so I put 0 there

Yeah you're right that would be the correct code.

tuia any luck so far?

Offline

    Positive reputation 0   Negative reputation 0

#12 2014-05-30 00:13:54

tuia
BFSoldier
Portugal
Reputation: +1152
Location: Lisbon
Registered: 2012-02-20
Posts: 6,412
Website
Windows 7 Opera 11.64

Re: First-person spectator camera

I won't look into BF1942.exe code until Sunday, but that information posted is useful.

Offline

    Positive reputation 0   Negative reputation 0

#13 2014-05-30 07:45:59

Millerke
"Miller is the Key" - Member ]DDW[
Hungary
Reputation: +281
Location: Hungary
Registered: 2013-03-19
Posts: 1,006
Website
Windows 8.1 Internet Explorer 11.0

Re: First-person spectator camera

Some mods have this camera (FH, BG42, DC, DCF, Siege ...) but i don't think so that a single custom map has it.
I think it needs a mod to do this, not per map.

Offline

    Positive reputation 0   Negative reputation 0

#14 2014-05-30 14:22:24

ziba128
Member
Reputation: +488
Location: EaglesNest_Safe
Registered: 2012-10-14
Posts: 1,290
Website
Unknown Opera 11.10

Re: First-person spectator camera

bud wrote:

Also this extra cameras break the soldiers weapon reload if you change to one of those cameras when reloading. That may be why they didnt use them in the finished game.

Yes, probably it happens due to switching between 1P and 3P animations

Millerke wrote:

I think it needs a mod to do this, not per map.

ok

Offline

    Positive reputation 0   Negative reputation 0

#15 2014-05-30 18:23:13

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

Re: First-person spectator camera

tuia wrote:

By the way, how do you make soldiers have 3rd person camera view?

Would it be considered cheating or a bonus?

Offline

    Positive reputation 0   Negative reputation 0

#16 2014-05-30 20:49:33

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

Re: First-person spectator camera

bud wrote:
tuia wrote:

By the way, how do you make soldiers have 3rd person camera view?

Would it be considered cheating or a bonus?

Well that's cheating of course, as you can see behind walls and stuff. No idea why DC allowed such a view.

Offline

    Positive reputation 0   Negative reputation 0

#17 2014-05-30 20:58:32

seventy
Playor
North Korea
Reputation: +812
Location: Pyongyang
Registered: 2014-03-06
Posts: 1,854
Windows 7 Firefox 29.0

Re: First-person spectator camera

I'm not sure if it's cheating since everybody can use it. It's like when you are in a tank or APC and change the view you can see through or behind buildings sometimes. But I think it would take away the fun of infantry fights.

Offline

    Positive reputation 0   Negative reputation 0

#18 2014-05-30 21:22:35

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

Re: First-person spectator camera

How many of you have played Desert Combat? And did you use this feature when playing Desert Combat?

Last edited by bud (2014-05-30 21:23:11)

Offline

    Positive reputation 0   Negative reputation 0

#19 2014-05-30 22:18:56

seventy
Playor
North Korea
Reputation: +812
Location: Pyongyang
Registered: 2014-03-06
Posts: 1,854
Windows 7 Firefox 29.0

Re: First-person spectator camera

bud wrote:

How many of you have played Desert Combat? And did you use this feature when playing Desert Combat?

I admit I did use it in DC every now and then (LostVillage map, lots of buildings there). But I tried to refrain myself from doing it because I found it lame myself.

Offline

    Positive reputation 0   Negative reputation 0

#20 2014-06-25 00:07:18

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

Re: First-person spectator camera

Any progress on this tuia?

Offline

    Positive reputation 0   Negative reputation 0

#21 2016-09-25 05:40:01

Melfius I
Player
Argentina
Reputation: +7
Location: Buenos Aires (Capital Federal)
Registered: 2016-08-27
Posts: 132
Windows XP Chrome 49.0

Re: First-person spectator camera

can you make a 3rd person crossair? swaffys mod does this with tanks

Offline

    Positive reputation 0   Negative reputation 1

#22 2016-09-25 15:01:55

Serebro
Reputation: +1084
Location: Moldova
Registered: 2014-03-28
Posts: 2,678
Windows 7 Chrome 53.0

Re: First-person spectator camera

It won't happen on public servers, cause it will give infantry players the ability to scan behind walls.

Online

    Positive reputation 0   Negative reputation 0

Board footer