Author Topic: running 2 punishments for camping?  (Read 10288 times)

Offline Kammo

  • Rank: Private
  • *
  • Posts: 163
running 2 punishments for camping?
« on: December 06, 2007, 12:37:30 am »
Is there a way to run 2 punishments for camping.. for instance I want to run fart and shellshock.
would like to have it where it warns first......
then farts.........
and if they dont move after 30 seconds of farting they get shell shock...

 Is this possable and if so, how?

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
running 2 punishments for camping?
« Reply #1 on: December 06, 2007, 08:42:04 am »
What version of eXtreme?

Offline Kammo

  • Rank: Private
  • *
  • Posts: 163
running 2 punishments for camping?
« Reply #2 on: December 06, 2007, 02:20:50 pm »
Oh sorry... 2.2
Also.. is there a way to change the color of the smoke from the fart?

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
running 2 punishments for camping?
« Reply #3 on: December 06, 2007, 04:42:22 pm »
To change the color of the fart smoke you would have to edit the EFX

Code: [Select]

rgb
{
start 1 1 0
end 1 .7 0
flags linear
}


Controls the colors

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
running 2 punishments for camping?
« Reply #4 on: December 06, 2007, 04:49:17 pm »
I briefly looked over the _ex_camper.gsc in the extreme folder

Easiest way ((definately not the best)) to do basically what you want is are line 162

Code: [Select]

if(isPlayer(self))
{
playfxontag(level.ex_effect["fartbomb"], self, "pelvis");
self playLocalSound("fart");
}


Add the shellshock to it

Code: [Select]

if(isPlayer(self))
{
playfxontag(level.ex_effect["fartbomb"], self, "pelvis");
self playLocalSound("fart");
self shellshock("medical", time);
}

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
running 2 punishments for camping?
« Reply #5 on: December 06, 2007, 06:57:50 pm »
That's doing fart and shellshock in one go after the one and only warning. When you settle for this, replace 'time' in the shellshock parameters with a value (like 5 for five seconds).

The camper code is based on ONE warning only. To include two warnings before punishment, you need to rescript it.

Offline Kammo

  • Rank: Private
  • *
  • Posts: 163
running 2 punishments for camping?
« Reply #6 on: December 07, 2007, 12:17:26 am »
Ok cool...Thank you Joker and Patman San...  so if I wanted to make the fart smoke green what code would I use? Looking for a light green or as close to green as possable. I found where to change it but not sure what color code to put in to make it that color..


Working on the punishments now.... thanks for the info on that!

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
running 2 punishments for camping?
« Reply #7 on: December 07, 2007, 12:45:35 am »
It's RGB values, where each color value is on a scale from 0.000 to 1.000, so for Green you could start with 0,1,0 and work your way to the color of your liking. There seems to be a special CoD RGB converter available somewhere to make your life easier.

Offline Kammo

  • Rank: Private
  • *
  • Posts: 163
running 2 punishments for camping?
« Reply #8 on: December 07, 2007, 01:05:31 am »
OH MAN! you guys rock!!!!! thank you soo much...
Ok got 2 more questions for ya...


1. where do I find the iwi files for the nades (the ones that you throw) and the nade in the right corner of the game screen (shows how many nades you have)  I would like to edit the way they look...

2. do you guys mind if I put credits to you guys on my server?

 Thanks again!

Offline Kammo

  • Rank: Private
  • *
  • Posts: 163
running 2 punishments for camping?
« Reply #9 on: December 07, 2007, 02:04:21 am »
hmmmm.. also noticed that the images are on a white background but when you see them in the game its just the image, no white..
I have the iwi to dds converter but what format do the images need to be edited in to get the transparent background on them in game?

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
running 2 punishments for camping?
« Reply #10 on: December 07, 2007, 02:11:08 am »
AFAIK the HUD icon for the frag nades is

Material file in gfx/icons/hud@russian_grenade.tga (iw_13.iwd), pointing to images\hud_russian_grenade.iwi (iw_09.iwd).

The grenades that you throw (that is, the ones flying through the air) are the nade projectiles defined in the grenade weapon files. Those things are part of the 3D virtual world, and are 3D models called "xmodels".

In weapons\mp\frag_grenade_american_mp:
projectileModel\xmodel/projectile_mk2fraggrenade

In weapons\mp\frag_grenade_britisch_mp:
projectileModel\xmodel/projectile_BritishGrenade

In weapons\mp\frag_grenade_german_mp:
projectileModel\xmodel/projectile_GermanGrenade

In weapons\mp\frag_grenade_russian_mp:
projectileModel\xmodel/projectile_RussianGrenade

To modify xmodels you need the material files and images too, export the lot, and change them in Maya (I think. I'm not the graphics expert here).


And hell yes. Advertise eXtreme+ as much as you can  :wink:

Offline Kammo

  • Rank: Private
  • *
  • Posts: 163
running 2 punishments for camping?
« Reply #11 on: December 07, 2007, 02:43:21 am »
You rock dude! thanks for getting back to me so quick!!!!!
I am gonna put credits up for yous guys on the server and the TBC website... We dont get much play but every little bit helps..

another thought... any way to make satchels burnable like nades?

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
running 2 punishments for camping?
« Reply #12 on: December 07, 2007, 02:43:53 am »
Quote from: "Kammo"
hmmmm.. also noticed that the images are on a white background but when you see them in the game its just the image, no white..
I have the iwi to dds converter but what format do the images need to be edited in to get the transparent background on them in game?


The background is obscured by the alpha channel. The support thread about creating your own logo image will clarify this a bit.

See LINK

Quote from: "Kammo"
another thought... any way to make satchels burnable like nades?


Now you lost me. The only nades that actually burn are the special napalm nades. Why do you want satchel charges to burn? Get napalm! You can have any combination as frag or smoke replacements.

Offline Kammo

  • Rank: Private
  • *
  • Posts: 163
running 2 punishments for camping?
« Reply #13 on: December 07, 2007, 02:57:08 am »
Sweet thanks very much for the info on those... I will be working on those for a while lol..

Umm the satchel burning is for good reason, if its possable....
If you were to go to our server you would see why.. the napalm wont work for what we are doing with it. But if it cant be done then thats cool...
But thank you again VERY VERY much for your help!!!
Im sure I will be back for some more tips...

Thanks BUNCHES!
and cant wait for the 2.3 release!

 B Back soon!

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
running 2 punishments for camping?
« Reply #14 on: December 07, 2007, 03:07:26 am »
Well, I have good news for you bud -- 2.3 has been released a couple of days ago.
Unfortunately you missed the annoying popup to tell you, and you can't tell otherwise because of the banners for the non-existing eXtreme for COD4 ( :P @ Joker)