thermal vision

General discussion of the Project Reality: BF2 modification.
zangoo
Posts: 978
Joined: 2007-09-01 03:42

thermal vision

Post by zangoo »

ok so here is a new look on a old issue. first when i was trying to make a night map i replaced most of the sky.con for kashan with a night map sky.con, now this made the ground and everything look dark, but the vehicles and people would still glow cus of the light maps. so that is like thermal vision but it wouldnt really work cus it would always be on.

so if you used python to check if a player was in a chopper, then if python was to edit the sky.con and the player would have this effect and it would look like thermal vison.

but the only issue with this is, can python check if a player is in the gunner seat of a chopper and also could python edit the sky.con?

so anyone know anything about bf2 python?
Mora
Posts: 2933
Joined: 2007-08-21 12:37

Post by Mora »

That would be very nice if that worked, but i doubt it.
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Post by zangoo »

looking at python here is a line of code that looks like it would do what we need

EnterVehicle(playerObject, vehicleObject[, freeSoldier])
here is some info off the wiki

Player represented by playerObject has entered the vehicle represented by vehicleObject. "freeSoldier" is 1 if the player is a passenger of the vehicle and is able to use weapons/objects of his kit. i.e. seat 4(+) of a black hawk. --Kiff 11:21, 25 January 2006 (MST)

so it also looks like it would be able to do this only for the gunner.
AirCasper
Posts: 137
Joined: 2008-04-20 18:59

Post by AirCasper »

This would be pretty cool!

never played on a night map with the wrong light maps before... So how much do they glow?
Waaah_Wah
Posts: 3167
Joined: 2007-07-26 13:55

Post by Waaah_Wah »

Pics plz :D
Never argue with an idiot, he will just drag you down to his level and beat you by experience ;)

Killing for peace is like f*cking for virginity

I :33_love: Jaymz
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Post by zangoo »

here are some pics from a while back

Image

Image

now you can change the color of trees, statics and the ground by editing the sky.con. now you might think this wouldnt work on a night map, but you could just use black hot instead of white hot like in real life.
AirCasper
Posts: 137
Joined: 2008-04-20 18:59

Post by AirCasper »

WOW.... :D
=Romagnolo=
Posts: 4765
Joined: 2006-12-29 14:52

Post by =Romagnolo= »

I cant understand why zangoo still is not a R-MOD !
[R-DEV]OkitaMakoto:"Cheers, you're the man, Okita"
[R-DEV]Rhino:"I in fact got kicked from a server for tking."
Hitperson:"well done, treasure it forever."
[R-DEV]Adriaan:"Damned classy Roma, if I may say so."
[R-DEV]Chuc:"Pro man, pro."
(yes, it was about me)
[R-MOD]BloodBane611:"Romagnolo, you definitely deserve a LOL award for that."
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Post by Rudd »

=Romagnolo= wrote:I cant understand why zangoo still is not a R-MOD !
or at least an R-CON, perhaps they are waiting on the ballistics to be done.
Image
=Romagnolo=
Posts: 4765
Joined: 2006-12-29 14:52

Post by =Romagnolo= »

Yah, R-CON !
[R-DEV]OkitaMakoto:"Cheers, you're the man, Okita"
[R-DEV]Rhino:"I in fact got kicked from a server for tking."
Hitperson:"well done, treasure it forever."
[R-DEV]Adriaan:"Damned classy Roma, if I may say so."
[R-DEV]Chuc:"Pro man, pro."
(yes, it was about me)
[R-MOD]BloodBane611:"Romagnolo, you definitely deserve a LOL award for that."
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Post by zangoo »

well i was talking to wookie scouty, said that python is not client side, and that it is not possible for the server to tell the client to change a .con file. so unless we find another way to change the sky.con this idea wont work.


edit again: ok so i was talking to him again, he said that you could use rcon_invoke to change the con file in the memory and then when the game is closed the file would be back to normal just like what we need. here is the code he said would do it

host.rcon_invoke(command)

so we need a dev that knows python to post and see if this is possible.
Last edited by zangoo on 2008-04-26 04:54, edited 3 times in total.
snotmaster0
Posts: 241
Joined: 2007-12-25 02:15

Post by snotmaster0 »

Sounds like a good idea!
Masaq
Retired PR Developer
Posts: 10043
Joined: 2006-09-23 16:29

Post by Masaq »

zangoo wrote:so we need a dev that knows python to post and see if this is possible.
Don't expect a Dev to post without some kind of notification about it. They necessarily don't have time to read every single thread on the forums, remember?

"That's how it starts, Mas, with that warm happy feeling inside. Pretty soon you're rocking in the corner, a full grown dog addict, wondering where your next St Bernand is coming from..." - IAJTHOMAS
"Did they say what he's angry about?" asked Annette Mitchell, 77, of the district, stranded after seeing a double feature of "Piranha 3D" and "The Last Exorcism." - Washington Post
baptist_christian
Posts: 266
Joined: 2007-06-20 21:51

Post by baptist_christian »

umm, some FLIR cameras do go black hot instead of white hot. but if these changes really could be put into project reality on all helicopters and APCs and tanks it would be absolutely awesome.
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Post by zangoo »

well i dont really have a choice if it is black or white hot, if it is a night map it will have to be black hot if it is a day map it will have to be white.
Ballistics or Tracers? Please Vote
[DM] member, We are now recruiting!
Xfire:Zangoo
UK_Force
Retired PR Developer
Posts: 10823
Joined: 2005-04-07 12:00

Post by UK_Force »

zangoo wrote: but you could just use black hot instead of white hot like in real life.

Actually you can switch to either in RL ;-)



.
Mora
Posts: 2933
Joined: 2007-08-21 12:37

Post by Mora »

Would this also work on the day version?
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Post by zangoo »

yes

this is the way it works

i can change the color of everything but the players and vehicls as this is set by the lightmaps, so on a day map we have to use white hot, there is no choice in this, on a night map it is the same i can make the ground white but the vehicls and players will have to stay black so it has to be black hot.
Ballistics or Tracers? Please Vote
[DM] member, We are now recruiting!
Xfire:Zangoo
Mora
Posts: 2933
Joined: 2007-08-21 12:37

Post by Mora »

Sweet!! please do this!! :-D

So it will look a little like this?
Image
Only then the vehicles will "glow"?
3===SPECTER===3
Posts: 831
Joined: 2007-05-05 01:13

Post by 3===SPECTER===3 »

Im confused of how the infantry will be affected by this, and what if i choose to switch Thermal off?
Post Reply

Return to “PR:BF2 General Discussion”