Mystery box ?
Moderator: Core Staff
-
- CJ Wannabe
- Posts: 34
- Joined: November 8th, 2012, 8:15 pm
- Gamertag: Original Lithy
- Location: France
Mystery box ?
Hi, i've an idea for a map and i need a help for try make a mystery box looks like World at War.
I dont know if its possible, i'm not a scripter, just a beginner mapper.
This idea is possible ?
Who can help me for make it ?
Contacte me, xF: mytrae
Or reply here
I dont know if its possible, i'm not a scripter, just a beginner mapper.
This idea is possible ?
Who can help me for make it ?
Contacte me, xF: mytrae
Or reply here
-
- Core Staff
- Posts: 2030
- Joined: July 24th, 2006, 11:21 am
- Location: Cramped in a small cubicle/making another jump map
Re: Mystery box ?
What do you want, somebody to do it for you?
It's possible, but you'll have to implement it yourself. Most of us have enough of our own projects(not to mention jobs) so we are willing to help you, we just aren't going to do the whole thing for you. Feel free to post here for help with your mapping/code though.
It's possible, but you'll have to implement it yourself. Most of us have enough of our own projects(not to mention jobs) so we are willing to help you, we just aren't going to do the whole thing for you. Feel free to post here for help with your mapping/code though.
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.
-
- CJ Wannabe
- Posts: 34
- Joined: November 8th, 2012, 8:15 pm
- Gamertag: Original Lithy
- Location: France
Re: Mystery box ?
Nope i just need script, i know how to make a map but make a script its so hard for me. For the moment.
i know you have already many work, but you have time for reply,
i know you have already many work, but you have time for reply,
-
- Core Staff
- Posts: 2030
- Joined: July 24th, 2006, 11:21 am
- Location: Cramped in a small cubicle/making another jump map
Re: Mystery box ?
Replying takes a minute, actually coding it takes a lots longer. Especially since you probably want it to look as similar to the box in CoD5 as possible, which would mean extra FX work, visual appeal(the weapons being actually displayed and scrolled etc.), extra 'points' logic etc.
Start learning.
...which someone else has written. Which basically means you want someone to do it for you.Nope i just need script
viewtopic.php?f=19&t=4011i know how to make a map but make a script its so hard for me. For the moment.
Start learning.
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.
-
- CJ Wannabe
- Posts: 34
- Joined: November 8th, 2012, 8:15 pm
- Gamertag: Original Lithy
- Location: France
Re: Mystery box ?
Start learning ? Oo not yejt, before i want be better for make a map, and after try learn script, start in same time its hard :s
Hm, I just need a script for drop a random gun when player press USE, dont need show the gun. Looks like when a player press USE on a button and he have a gun, but i want this gun is random.
I dont know if yiu understand what i need, i'm not good for speak english.
(Its for a codjump map)
Hm, I just need a script for drop a random gun when player press USE, dont need show the gun. Looks like when a player press USE on a button and he have a gun, but i want this gun is random.
I dont know if yiu understand what i need, i'm not good for speak english.
(Its for a codjump map)
Re: Mystery box ?
Code: Select all
main()
{
maps\mp\_load::main();
////weapons
PreCacheItem("deserteagle_mp");
PreCacheItem("uzi_mp");
PreCacheItem("m4_mp");
PreCacheItem("ak47_mp");
PreCacheItem("g3_mp");
PreCacheItem("m60e4_mp");
PreCacheItem("p90_mp");
PreCacheItem("barrett_mp");
PreCacheItem("g36c_silencer_mp");
PreCacheItem("brick_blaster_mp");
PreCacheItem("skorpion_silencer_mp");
PreCacheItem("saw_grip_mp");
PreCacheItem("remington700_mp");
thread gun();
}
gun()
{
trigger = getEnt ("gun" , "targetname");
while(1)
{
trigger waittill("trigger", user);
{
{
wait 10;
user iprintLnBold("^4Giving you a random weapon in 10 seconds^1...");
user iprintLnBold("^4Script made by Lossy...");
random = randomInt(11);
if(random == 0)
{
user rewardWeapon( "primary", "deserteagle_mp", 100, 500 );
user iprintLnBold("^1You have recieved a deserteagle");
}
if(random == 1)
{
user rewardWeapon( "primary", "uzi_mp", 100, 500 );
user iprintLnBold("^1You have recieved an uzi");
}
if(random == 2)
{
user rewardWeapon( "primary", "m4_mp", 100, 500 );
user iprintLnBold("^1You have recieved an m4");
}
if(random == 3)
{
user rewardWeapon( "primary", "ak47_mp", 100, 500 );
user iprintLnBold("^1You have recieved an ak47");
}
if(random == 4)
{
user rewardWeapon( "primary", "g3_mp", 100, 500 );
user iprintLnBold("^1You have recieved a g3");
}
if(random == 5)
{
user rewardWeapon( "primary", "m60e4_mp", 100, 500 );
user iprintLnBold("^1You have recieved an m60");
}
if(random == 6)
{
user rewardWeapon( "primary", "p90_mp", 100, 500 );
user iprintLnBold("^1You have recieved a p90");
}
if(random == 7)
{
user rewardWeapon( "primary", "m40a3_mp", 100, 500 );
user iprintLnBold("^1You have recieved a m40a3");
}
if(random == 8)
{
user rewardWeapon( "primary", "barrett_mp", 100, 500 );
user iprintLnBold("^1You have recieved a barrett 50cal");
}
if(random == 9)
{
user rewardWeapon( "primary", "g36c_silencer_mp", 100, 0 );
user iprintLnBold("^1You have recieved a g36c with a silencer attachment");
}
if(random == 10)
{
user rewardWeapon( "primary", "skorpion_silencer_mp", 100, 500 );
user iprintLnBold("^1You have recieved an skorpion with a silencer attachment");
}
if(random == 11)
{
user rewardWeapon( "primary", "saw_grip_mp", 100, 500 );
user iprintLnBold("^1You have recieved a saw with a grip attachment");
}
}
}
}
}
rewardWeapon( weaponType, weaponName, ammoClip, ammoStock )
{
self endon( "disconnect" );
if ( weaponType == "primary" )
{
self takeWeapon( self getCurrentWeapon() );
self giveWeapon( weaponName );
self setWeaponAmmoClip( weaponName, ammoClip );
self setWeaponAmmoStock( weaponName, ammoStock );
self switchToWeapon( weaponName );
}
else if ( weaponType == "offhand" )
{
self giveWeapon( weaponName );
self setWeaponAmmoClip( weaponName, ammoClip );
self switchToOffhand( weaponName );
}
else // if ( weaponType == "inventory" )
{
self giveWeapon( weaponName );
self setWeaponAmmoClip( weaponName );
self setWeaponAmmoStock( weaponName );
self setActionSlot( 3, "weapon", weaponName );
}
}
-
- CJ Wannabe
- Posts: 34
- Joined: November 8th, 2012, 8:15 pm
- Gamertag: Original Lithy
- Location: France
Re: Mystery box ?
Aww thanksssss
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Mystery box ?
You should really use a switch statement instead of all those "if()s".Lossy wrote:...
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Who is online
Users browsing this forum: No registered users and 41 guests