Deck16][ beta is there for CoD2

General chat area for anything whatsoever

Moderator: Core Staff

User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

Re: Deck16][ beta is there for CoD2

Post by waywaaaard » July 24th, 2010, 12:01 pm

monday evening (26.07) sounds good for me around 8 pm?
THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Deck16][ beta is there for CoD2

Post by <LT>YosemiteSam[NL] » July 24th, 2010, 12:57 pm

Ok i'll be there m8 .. looking forwrd to it :)

p.s. can you take a look at the elevator script in my post ;


http://codjumper.com/forums/viewtopic.p ... 24#p136024

I'm at a loss

Brody
CJ Newbie
CJ Newbie
Posts: 96
Joined: December 30th, 2009, 1:43 pm
Location: Belgium

Re: Deck16][ beta is there for CoD2

Post by Brody » July 25th, 2010, 10:10 am

8PM GMT? (UK time.)

User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

Re: Deck16][ beta is there for CoD2

Post by waywaaaard » July 25th, 2010, 12:44 pm

yeah . forum time here :D
THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Deck16][ beta is there for CoD2

Post by <LT>YosemiteSam[NL] » July 25th, 2010, 7:40 pm

Oh so it's 20:00 forum time. mmm that's 19:00 over here, not sure if I can make that. Depends on when my daughter is going to bed. But I'll probably make it around 19:30 though.

User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

Re: Deck16][ beta is there for CoD2

Post by waywaaaard » July 25th, 2010, 8:16 pm

yeah half an hour doesnt matter :D

But are you sure it's 19:00 in the neverlands 20:00 forum time? Cause germany should have the same time as you :P We can also meet at 20:00 UTC+1:00
THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

Brody
CJ Newbie
CJ Newbie
Posts: 96
Joined: December 30th, 2009, 1:43 pm
Location: Belgium

Re: Deck16][ beta is there for CoD2

Post by Brody » July 25th, 2010, 8:37 pm

<LT>YosemiteSam[NL] wrote:Oh so it's 20:00 forum time. mmm that's 19:00 over here, not sure if I can make that. Depends on when my daughter is going to bed. But I'll probably make it around 19:30 though.
Holland is GMT+1, not -1. So it's 21.00, not 19.00. :wink:

Think I can be there around 19.30-20.00 forum time.

I assume we'll be playing on the CoD2 jump server?

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Deck16][ beta is there for CoD2

Post by <LT>YosemiteSam[NL] » July 25th, 2010, 9:14 pm

oh yeah that's right :oops: so 21:00 it is I'll be there.

I am working on a health increasepack for the map but I'm not that script-smart, I tried to use the weapon respawn script from rezil but I can't figure it out. This is what I have sofar;

Code: Select all

*/

setupitemForPickup(item_name, item_xmodel, soundalias, delay)
{
precachemodel(item_xmodel);
   trig = getentarray("item_pickup_" +item_name,"targetname");
   org = getentarray("item_origin_" +item_name,"targetname");
   if(org.size == trig.size) //same ammount of origins and triggers, otherwise you get errors
   {
      for(i=0;i<org.size;i++)
      {
         trig[i] thread itemPickup(org[i], item_name, item_xmodel, soundalias, delay);
         
      }
   }
}

itemPickup(o, item, xmodel, sound, delay)
{
   while(1) ///50
   {
      o setmodel(xmodel);
      o notsolid(); //already true, just not sure about all script_models
      self waittill("trigger", user);
      self.maxhealth = 200; 
         o playsound("weap_pickup");    
      wait 10; //to prevent unlimited ammo while staying inside the trigger
         
    }

         ///self.maxhealth = 200;//////////////////////
         o playsound(sound);
         
         o hide();
         self maps\mp\_utility::TriggerOff();
         
         if(isdefined(delay))
         {
            wait delay;
         }
         
         self maps\mp\_utility::TriggerOn();
         o playsound("spawnsound");
         o show();
      //}
   //}
}
It plays the sound when I pick up the medic pack but it doesn't give you 200 health and the medic pack stays (doesn't get removed.

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Deck16][ beta is there for CoD2

Post by Rezil » July 25th, 2010, 9:48 pm

First of all, you can't have 200 health. Health in CoD2 get automatically capped at 100 and is regenerated. You can max out the health though but I'm not sure how that affects the HUD(the red stuff on the screen).

Am reworking my script for health, brb.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Deck16][ beta is there for CoD2

Post by <LT>YosemiteSam[NL] » July 25th, 2010, 9:50 pm

First of all, you can't have 200 health. Health in CoD2 get automatically capped at 100 and is regenerated.
Damn, could have saved me a few hours if I knew that :)

If it can't be done (200 health I mean) than you don't have to rewrite it m8. but thx anyway :wink:

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Deck16][ beta is there for CoD2

Post by Rezil » July 25th, 2010, 10:18 pm

Oh yeah, well I did it anyway! :P

Code: Select all

/*
										Scripted by: Rezil
										--------------------------------
										Contact detail:
										
										xfire: saberteeth
										e-mail: Rezil@CoDJumper.com
										--------------------------------
										If you have any questions, either add me on xfire or
										send me en e-mail.
										--------------------------------
										
										Health picking up and respawning logic
-----------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------
										Requirements:
										- At least one trigger named "health_pickup_*", where * is the type of health("big", "med" or "small")
									    - At least one script_model named "health_origin_*", where * is the type of health("big", "med" or "small")
										- The ammount of triggers and script_models has to be the same
										--------------------------------
										How it works:
										
										- Call setupHealthPickup somewhere in your main level script,
										  near the begining. 
										- 'health_type' is the type of health, it can be either small, med or big
										- 'delay' is the delay in seconds after which the health will respawn
*/

setupHealthPickup(health_type, delay)
{
	if(health_type=="big")
	{
		precachemodel("xmodel/health_large");
	}
	else if(health_type=="med")
	{
		precachemodel("xmodel/health_medium");
	}
	else if(health_type=="small")
	{
		precachemodel("xmodel/health_small");
	}
	trig = getentarray("health_pickup_" +health_type,"targetname");
	org = getentarray("health_origin_" +health_type,"targetname");
	if(org.size == trig.size) //same ammount of origins and triggers, otherwise you get errors
	{
		for(i=0;i<org.size;i++)
		{
			trig[i] thread healthPickup(org[i], health_type, delay);
		}
	}
}

healthPickup(o, health, delay)
{
	while(1)
	{
		if(health=="big")
		{
			o setmodel("xmodel/health_large");
		}
		else if(health=="med")
		{
			o setmodel("xmodel/health_medium");
		}
		else if(health=="small")
		{
			o setmodel("xmodel/health_small");
		}
		o notsolid();
		self waittill("trigger", user);
		if(user.health<100) 
		{ //not at full health
			if(health=="big")
			{
				user.health = user.health + 100;
				user iprintln("You picked up a large medkit");
			}
			else if(health=="med")
			{
				user.health = user.health + 50;
				user iprintln("You picked up a medium medkit");
			}
			else if(health=="small")
			{
				user.health = user.health + 25;
				user iprintln("You picked up a small medkit");
			}
			//o playsound("health_pickup");
			o hide();
			self maps\mp\_utility::TriggerOff();
			
			wait delay;
			
			self maps\mp\_utility::TriggerOn();
			//o playsound("health_respawned");
			o show();
		}
		else 
		{
			wait 0.05;
		}
	}
}
Delay is not optional anymore because health should always be picked up unless you already have max health.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Deck16][ beta is there for CoD2

Post by <LT>YosemiteSam[NL] » July 25th, 2010, 10:24 pm

:D Ok m8 still thx. May be I'll use it for the health bottles/vails(?) which are in UT.

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Deck16][ beta is there for CoD2

Post by Rezil » July 25th, 2010, 10:25 pm

Use it however you want, just note that it doesn't update the shellshock(red flashing across the screen) but your health is regained.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

Re: Deck16][ beta is there for CoD2

Post by waywaaaard » July 25th, 2010, 10:30 pm

That isnt true rezil you can have more than 100 health :P Look for example at the god mode function and my bounce pad script. You can simply set the player.health += 100!
THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Deck16][ beta is there for CoD2

Post by Rezil » July 25th, 2010, 10:34 pm

waywaaaard wrote:That isnt true rezil you can have more than 100 health :P Look for example at the god mode function and my bounce pad script. You can simply set the player.health += 100!
wtf? And the health stays at a value over 100? I mean, after you regenerate your health back, do you go back to 100 or do you stay over 100?
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest