Deck16][ beta is there for CoD2
Moderator: Core Staff
-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
Re: Deck16][ beta is there for CoD2
monday evening (26.07) sounds good for me around 8 pm?
THAT HANDS WERE NOT TRACED!
visit my blog: Link
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
-
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
- Contact:
Re: Deck16][ beta is there for CoD2
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
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
Re: Deck16][ beta is there for CoD2
8PM GMT? (UK time.)
-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
Re: Deck16][ beta is there for CoD2
yeah . forum time here
THAT HANDS WERE NOT TRACED!
visit my blog: Link
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
-
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
- Contact:
Re: Deck16][ beta is there for CoD2
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.
-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
Re: Deck16][ beta is there for CoD2
yeah half an hour doesnt matter
But are you sure it's 19:00 in the neverlands 20:00 forum time? Cause germany should have the same time as you We can also meet at 20:00 UTC+1:00
But are you sure it's 19:00 in the neverlands 20:00 forum time? Cause germany should have the same time as you We can also meet at 20:00 UTC+1:00
THAT HANDS WERE NOT TRACED!
visit my blog: Link
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
Re: Deck16][ beta is there for CoD2
Holland is GMT+1, not -1. So it's 21.00, not 19.00.<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.
Think I can be there around 19.30-20.00 forum time.
I assume we'll be playing on the CoD2 jump server?
-
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
- Contact:
Re: Deck16][ beta is there for CoD2
oh yeah that's right 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;
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.
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();
//}
//}
}
-
- 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
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.
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.
[...]
#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.
-
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
- Contact:
Re: Deck16][ beta is there for CoD2
Damn, could have saved me a few hours if I knew thatFirst of all, you can't have 200 health. Health in CoD2 get automatically capped at 100 and is regenerated.
If it can't be done (200 health I mean) than you don't have to rewrite it m8. but thx anyway
-
- 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
Oh yeah, well I did it anyway!
Delay is not optional anymore because health should always be picked up unless you already have max health.
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;
}
}
}
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.
[...]
#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.
-
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
- Contact:
Re: Deck16][ beta is there for CoD2
Ok m8 still thx. May be I'll use it for the health bottles/vails(?) which are in UT.
-
- 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
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.
[...]
#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.
-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
Re: Deck16][ beta is there for CoD2
That isnt true rezil you can have more than 100 health 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
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
-
- 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
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?waywaaaard wrote:That isnt true rezil you can have more than 100 health Look for example at the god mode function and my bounce pad script. You can simply set the player.health += 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.
[...]
#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.
Who is online
Users browsing this forum: No registered users and 1 guest