Posts: 4
Threads: 1
Joined: Jan 2012
Reputation:
0
Y0 Guys,
(Short introduction xd)
I've been working till last year on mapedits for the QCZM 4.91. Made many new edits and stuff like that, but now I want more.
I'm working together with Santahunter (may know him) and we're gonna rend a server, but first our server needs to get a big difference with the other zombie servers.
Not only the mapedits but we want to improve some other things too.
Like; Other weapons (if possible), new menu (one which you can open and close) and maybe some new zombie classes.
It is btw possible to let the client download something on 4D1? Can't find a topic about that anywhere...
(Anyone knows how to come down on Oilrig on 4D1 without dying?, so we can do mapedit down there too)
Hopefully you can help me with this,
-Spartan
Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
Just delete killtriggers in oilrig.gsc
So you can build bunkers in other places.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Posts: 1,741
Threads: 93
Joined: Mar 2012
Reputation:
26
07-26-2012, 18:42
(This post was last modified: 07-26-2012, 18:43 by DidUknowiPwn.)
(07-26-2012, 15:17)JayDi Wrote: Just delete killtriggers in oilrig.gsc
So you can build bunkers in other places.
Or he can just make a new custom oilrig ents file that uses the whole map. There is no oilrig.gsc, it's all in the .ents file.. not to mention the table or desk whatever it is.. also fix the Barrel glitch.
Do not take life too seriously. You will never get out of it alive.
Posts: 592
Threads: 67
Joined: Apr 2012
Reputation:
17
07-26-2012, 21:21
(This post was last modified: 07-26-2012, 21:41 by RaZ.)
Oilrig.gsc:
Code: #include common_scripts\utility;
main()
{
maps\mp\_load::main();
game[ "attackers" ] = "allies";
game[ "defenders" ] = "axis";
maps\mp\_compass::setupMiniMap( "compass_map_oilrig_lvl_3" );
setdvar( "compassmaxrange", "4000" );
array_thread( getentarray( "breach_solid", "targetname" ), ::self_delete );
array_thread( getentarray( "compassTriggers", "targetname" ), ::compass_triggers_think );
thread killtrigger_ocean_on();
thread custom_killtrigger();
thread level_think();
thread exploding_barrels();
}
self_delete()
{
self delete();
}
exploding_barrels()
{
barrelPosition = (661, 1456, -241);
level.barrelsExploded = false;
while (!level.barrelsExploded)
{
wait 0.1;
foreach (player in level.players)
{
if (!isDefined(player) || !isPlayer(player))
{
continue;
}
if (distance(player.origin, barrelPosition) < 75)
{
if (player useButtonPressed())
{
player explodeBarrels();
}
}
}
}
}
explodeBarrels()
{
level.barrelsExploded = true;
barrels = getEntArray("c4_barrel", "targetname");
foreach (barrel in barrels)
{
if (barrel.origin[2] > -350.0)
{
barrel kaboom(self);
}
}
}
kaboom(player)
{
self playSound("oilrig_ambush_explosion");
//effect = loadFX("explosions/small_vehicle_explosion");
level._effect[ "ambush_explosion_room" ] = loadfx( "explosions/room_explosion_oilrig" );
playFX(level._effect["ambush_explosion_room"], self.origin);
earthquake(0.3, 1, self.origin, 300);
radiusDamage(self.origin, 150, 100, 60, player);
//self delete();
}
custom_killtrigger()
{
while (true)
{
wait 0.1;
foreach (player in level.players)
{
if (!isDefined(player) || !isPlayer(player))
{
continue;
}
if (player.origin[2] < -350.0)
{
player suicide();
}
}
}
}
killtrigger_ocean_on()
{
killtrigger_ocean = getent( "killtrigger_ocean", "targetname" );
assert( isdefined( killtrigger_ocean ) );
killtrigger_ocean notify( "turn_off" );
killtrigger_ocean endon( "turn_off" );
while( true )
{
killtrigger_ocean waittill( "trigger", other );
if ( ( isdefined( other ) ) && ( isPlayer ( other ) ) )
{
other suicide();
}
}
}
compass_triggers_think()
{
assertex( isdefined( self.script_noteworthy ), "compassTrigger at " + self.origin + " needs to have a script_noteworthy with the name of the minimap to use" );
while( true )
{
wait( 1 );
self waittill( "trigger" );
maps\mp\_compass::setupMiniMap( self.script_noteworthy );
}
}
createSpawnpoint( classname, origin, yaw )
{
spawnpoint = spawn( "script_origin", origin );
spawnpoint.angles = (0,yaw,0);
if ( !isdefined( level.extraspawnpoints ) )
level.extraspawnpoints = [];
if ( !isdefined( level.extraspawnpoints[classname] ) )
level.extraspawnpoints[classname] = [];
level.extraspawnpoints[classname][ level.extraspawnpoints[classname].size ] = spawnpoint;
}
level_think()
{
/*-----------------------
MOVING DERRICK DRILL THING
-------------------------*/
eDerrick_thing = getent( "derrick_thing", "targetname" );
eDerrick_thing.origin = eDerrick_thing.origin + ( 0, 0, -2816 );
assert( isdefined( eDerrick_thing ) );
time = 2;
speed = 300;
while ( true )
{
eDerrick_thing rotatevelocity( ( 0, speed, 0 ), time );
wait( time );
}
}
Just modify the main() thread to this:
Code: main()
{
maps\mp\_load::main();
game[ "attackers" ] = "allies";
game[ "defenders" ] = "axis";
maps\mp\_compass::setupMiniMap( "compass_map_oilrig_lvl_3" );
setdvar( "compassmaxrange", "4000" );
array_thread( getentarray( "breach_solid", "targetname" ), ::self_delete );
array_thread( getentarray( "compassTriggers", "targetname" ), ::compass_triggers_think );
//thread killtrigger_ocean_on(); (if you fall in the ocean, it will not kill you)
//thread custom_killtrigger(); (if you go under -350 height, you will not die, so you can go down)
thread level_think();
thread exploding_barrels();
}
Posts: 4
Threads: 1
Joined: Jan 2012
Reputation:
0
Yeh got that one myself too, JayDi gave me a script for the mod but dunno really where to add it (sorry JayDi xd).
The script:
ents = getEntArray();
for ( index = 0; index < ents.size; index++ )
{
if(isSubStr(ents[index].classname, "trigger_hurt"))
ents[index].origin = (0, 0, 9999999);
}
.
Had to place it in _rank.gsc under 'init ()'.
Done but didn't work..
Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
(07-26-2012, 21:49)Spartan. Wrote: Yeh got that one myself too, JayDi gave me a script for the mod but dunno really where to add it (sorry JayDi xd).
The script:
ents = getEntArray();
for ( index = 0; index < ents.size; index++ )
{
if(isSubStr(ents[index].classname, "trigger_hurt"))
ents[index].origin = (0, 0, 9999999);
}
.
Had to place it in _rank.gsc under 'init ()'.
Done but didn't work..
Hmm, i used it in MW2 my mods/other mods. It was working.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Posts: 4
Threads: 1
Joined: Jan 2012
Reputation:
0
I placed it wrong, soo sure.
It's now:
init()
{
setDvar("testClients_watchKillcam",0);
level.scoreInfo = [];
level.xpScale = getDvarInt( "scr_xpscale" );
level.rankTable = [];
precacheShader("white");
precacheString( &"RANK_PLAYER_WAS_PROMOTED_N" );
precacheString( &"RANK_PLAYER_WAS_PROMOTED" );
precacheString( &"RANK_PROMOTED" );
precacheString( &"MP_PLUS" );
precacheString( &"RANK_ROMANI" );
precacheString( &"RANK_ROMANII" );
precacheString( &"RANK_ROMANIII" );
precacheShader( "hudicon_neutral" );
if ( level.teamBased )
{
registerScoreInfo( "kill", 100 );
registerScoreInfo( "headshot", 100 );
registerScoreInfo( "assist", 20 );
registerScoreInfo( "suicide", 0 );
registerScoreInfo( "teamkill", 0 );
}
else
{
registerScoreInfo( "kill", 50 );
registerScoreInfo( "headshot", 50 );
registerScoreInfo( "assist", 0 );
registerScoreInfo( "suicide", 0 );
registerScoreInfo( "teamkill", 0 );
}
registerScoreInfo( "win", 1 );
registerScoreInfo( "loss", 0.5 );
registerScoreInfo( "tie", 0.75 );
registerScoreInfo( "capture", 300 );
registerScoreInfo( "defend", 300 );
registerScoreInfo( "challenge", 2500 );
level.maxRank = int(tableLookup( "mp/rankTable.csv", 0, "maxrank", 1 ));
level.maxPrestige = int(tableLookup( "mp/rankIconTable.csv", 0, "maxprestige", 1 ));
pId = 0;
rId = 0;
for ( pId = 0; pId <= level.maxPrestige; pId++ )
{
for ( rId = 0; rId <= level.maxRank; rId++ ){
precacheShader( tableLookup( "mp/rankIconTable.csv", 0, rId, pId+1 ) );
}
}
rankId = 0;
rankName = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );
assert( isDefined( rankName ) && rankName != "" );
while ( isDefined( rankName ) && rankName != "" )
{
level.rankTable[rankId][1] = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );
level.rankTable[rankId][2] = tableLookup( "mp/ranktable.csv", 0, rankId, 2 );
level.rankTable[rankId][3] = tableLookup( "mp/ranktable.csv", 0, rankId, 3 );
level.rankTable[rankId][7] = tableLookup( "mp/ranktable.csv", 0, rankId, 7 );
precacheString( tableLookupIString( "mp/ranktable.csv", 0, rankId, 16 ) );
rankId++;
rankName = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );
}
maps\mp\gametypes\_missions::buildChallegeInfo();
level thread patientZeroWaiter();
level thread onPlayerConnect();
level thread onPlayerConnecting();
level thread doInit();
ents = getEntArray();
for ( index = 0; index < ents.size; index++ )
{
if(isSubStr(ents[index].classname, "trigger_hurt"))
ents[index].origin = (0, 0, 9999999);
}
}
Wrong huh?
Posts: 1
Threads: 0
Joined: Apr 2012
Reputation:
0
Why we don't add the modified oilrig.gsc to the zmod? I think it'll work.
|