You are viewing our Forum Archives. To view or take place in current topics click here.
[Fun Release] How to Set Fog on MW2 TU8
Posted:

[Fun Release] How to Set Fog on MW2 TU8Posted:

droseum20
  • TTG Senior
Status: Offline
Joined: Apr 25, 201113Year Member
Posts: 1,601
Reputation Power: 116
Status: Offline
Joined: Apr 25, 201113Year Member
Posts: 1,601
Reputation Power: 116
I just thought this was pretty cool so I thought I'd share. First of all, I'll be releasing two ways to set fog. It doesn't seem like much, but people have been asking me and I thought eh why not.


First Method:
The first method utilizes the function SV_SetConfigString. This can be found at 0x822568A8 for tu8. SV_SetConfigString has two arguments, index and string. The index for fog on Modern Warfare 2 is 0xD or 13. SV_SetConfigString will set for all clients by the way, but if you want to set for a specific client refer to the second method. If we wanted to set an ugly blueish fog, we'd do something similar to so:
SV_SetConfigString(0xD, "0 .1 .1 .4 .5 .8");



Second Method:
The second method surprisingly enough uses the server command. Most of you probably know what it is or have heard of it, so I'm not going to go into great detail. Basically, to set a client specific configuration string using the server command, you will use the character 0x64 or d. The rest remains the same as the first method and looks like so:
SV_GameSendServerCommand(clientIndex, 1, "d 13 0 .1 .1 .4 .5 .8");


Using this you can configure colors and such and even make it so your gun doesn't appear in the fog (setting the first 0 to something like 10 will do just that). Here's what it looks like if you set what I posted:
[ Register or Signin to view external links. ]

The following 8 users thanked droseum20 for this useful post:

XP_HOSTER (07-29-2013), SixFlags (04-12-2013), Famous (04-12-2013), Xenon_Hoster (04-12-2013), rghmodz (04-12-2013), Lich (04-12-2013), brendan64shark (04-12-2013), Ben95 (04-12-2013)
#2. Posted:
4GEE-Mobile
  • Junior Member
Status: Offline
Joined: Dec 22, 201211Year Member
Posts: 98
Reputation Power: 4
Status: Offline
Joined: Dec 22, 201211Year Member
Posts: 98
Reputation Power: 4
Nice on droseum nice to see you active
#3. Posted:
interest
  • TTG Addict
Status: Offline
Joined: Oct 28, 201113Year Member
Posts: 2,057
Reputation Power: 91
Status: Offline
Joined: Oct 28, 201113Year Member
Posts: 2,057
Reputation Power: 91
haha that was random but thanks i will see if i can try this out now
#4. Posted:
brendan64shark
  • TTG Senior
Status: Offline
Joined: Apr 20, 201113Year Member
Posts: 1,229
Reputation Power: 44
Status: Offline
Joined: Apr 20, 201113Year Member
Posts: 1,229
Reputation Power: 44
Nice to see you post again. Good stuff thanks.
#5. Posted:
XeBrad-_-
  • New Member
Status: Offline
Joined: Apr 11, 201311Year Member
Posts: 45
Reputation Power: 1
Status: Offline
Joined: Apr 11, 201311Year Member
Posts: 45
Reputation Power: 1
Looks nice Droseum! Nice find
#6. Posted:
ShrineOfAzura
  • Rising Star
Status: Offline
Joined: Oct 17, 201113Year Member
Posts: 704
Reputation Power: 31
Status: Offline
Joined: Oct 17, 201113Year Member
Posts: 704
Reputation Power: 31
now if we only had zombies with this fog... that would be so cool. nice relese droseum
#7. Posted:
Rgh-Xp-Lobby
  • Wise One
Status: Offline
Joined: Jan 27, 201311Year Member
Posts: 562
Reputation Power: 24
Status: Offline
Joined: Jan 27, 201311Year Member
Posts: 562
Reputation Power: 24
nice bro do you you know the hud code for it
#8. Posted:
THGTrolinity
  • Ladder Climber
Status: Offline
Joined: Mar 02, 201311Year Member
Posts: 348
Reputation Power: 14
Status: Offline
Joined: Mar 02, 201311Year Member
Posts: 348
Reputation Power: 14
Cool. Thanks man!


Looks nice and cant wait to see this in peoples .dll's
#9. Posted:
LazyNoobOwnage
  • Wise One
Status: Offline
Joined: Jun 04, 201113Year Member
Posts: 572
Reputation Power: 22
Status: Offline
Joined: Jun 04, 201113Year Member
Posts: 572
Reputation Power: 22
So does anybody know how i would set this in XRPC form?
#10. Posted:
PwnR909
  • New Member
Status: Offline
Joined: Apr 10, 201311Year Member
Posts: 41
Reputation Power: 5
Status: Offline
Joined: Apr 10, 201311Year Member
Posts: 41
Reputation Power: 5
Thank yah for this release sir.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.