Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 11 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: I'm trying to make a mod...
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 MP Mapping
Posted: Saturday, Dec. 8, 2007 07:25 pm
all mods either have their own rank, or no rank
Share |
DaveR
General Member
Since: Dec 5, 2006
Posts: 380
Last: Sep 17, 2011
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Saturday, Dec. 8, 2007 09:10 pm
That isn't really the point.

It's that the script is ment to force the player to drop his gun, but that's not happening... any suggestions?
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 MP Mapping
Posted: Saturday, Dec. 8, 2007 09:27 pm
the script i put there wasn't complete:

Code:

ZomDropGun()
{
players = getentarray("player","classname");
for(i = 0; i < players.size; i++)
{
if(players[i] getcurrentweapon() != "ak47_mp" || players[i] getcurrentweapon() != "somethingelse_mp") players[i] dropitem(players[i] getcurrentweapon());
}}


edited on Dec. 8, 2007 04:28 pm by NovemberDobby
Share |
DaveR
General Member
Since: Dec 5, 2006
Posts: 380
Last: Sep 17, 2011
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Saturday, Dec. 8, 2007 09:52 pm
Well still guns aren't being dropped...
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 MP Mapping
Posted: Saturday, Dec. 8, 2007 10:12 pm
did you call the function?

thread ZomDropGun();
Share |
DaveR
General Member
Since: Dec 5, 2006
Posts: 380
Last: Sep 17, 2011
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Sunday, Dec. 9, 2007 08:44 am
What u mean with 'call the function'?
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 MP Mapping
Posted: Sunday, Dec. 9, 2007 09:40 am
putting those lines of code in won't do anything unless you run ZomDropGun() in the script. I thought you knew that after looking in the scripts.

In the gsc of the gametype you are editing, add

thread ZomDropGun();

into the main() section somewhere, and make sure you copy the gun script itself into that file.
Share |
Bloodlust
General Member
Since: Apr 7, 2004
Posts: 101
Last: Jan 14, 2015
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, Dec. 9, 2007 09:46 am
if you want this to be "realistic" (as far as zombies are concerned hehe) then you should set the zombie health to at least twice that of the hunters, make the zombies automatically drop any weapon they pickup, and make it so the zombies dont take any damage at all UNLESS its a headshot. the zombies can still attack with only melee attacks.
it would still be a knife though, unless you can change the melee knife model to something else, or just make a melee punch xanim.

and what he means by "call the function" is the
thread ZomDropGun(); part.

you should do this as soon as the zombie spawns, once the zombie player has been notified of ("player_spawned");
actually the complete script for this to work properly would be like this:

ZomDropGun()
{
while(1)
{
players = getentarray("player","classname");
for(i = 0; i < players.size; i++)
{
zombie = players;
if(isdefined(zombie.pers["team"] && zombie.pers["team"] == "axis")
{
zombie dropitem(zombie getcurrentweapon());
}
}
wait 0.5; // do this function twice per second
}
}


since you know you always want the axis team (zombies) to drop any weapon they have, there is no need to check against specific weapon types. just make them drop all weapons. they cant drop their knife since it really isnt a weapon.
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 MP Mapping
Posted: Sunday, Dec. 9, 2007 10:10 am
@Bloodlust

Removing the head...or destroying the brain.
[lol]

anyway, I was assuming that the zombies will have their own weapons, for melee'ing with...then I remembered that there's only the knife :(
Share |
Bloodlust
General Member
Since: Apr 7, 2004
Posts: 101
Last: Jan 14, 2015
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, Dec. 9, 2007 10:20 am
crap, had a typo in my last post for the ZomDropGun function.
this one is correct:


ZomDropGun()
{
while(1)
{
players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
{
zombie = players[ i ];

if(isdefined(zombie.pers["team"]) && zombie.pers["team"] == "axis")
{
zombie dropitem(zombie getcurrentweapon());
}
}

wait 0.5; // do this function twice per second

}
}


sorry about that... [ohwell]
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»