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

Members Online

»
0 Active | 88 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 subscribe
Author Topic: Movable Vehicle in a multiplayer map
ErikTheBorn
General Member
Since: Jan 19, 2013
Posts: 7
Last: Feb 10, 2013
[view latest posts]
Level 0
Category: CoD4 MP Mapping
Posted: Saturday, Jan. 19, 2013 02:19 pm
Hello! Im new to modding maps. its kinda fun when u get a hang of it [biggrin]. However i have multiplayer map wich i want to make a movable tank on. M1A1 Abraham to be exact. However the only thing is i dont know how to do it on multiplayer. it works in single player but not in multiplayer. Can someone tell me how to do it? anyway of porting the abillity of having moving vehicles in multiplayer? Please Help!

[machine_gun] [sniper]
YELLOW WINS! [[thumbs_up][biggrin] YAY! [wink]
........ [sad][cry]

edited on Jan. 19, 2013 07:19 am by ErikTheBorn
Share |
Uk_viiper
General Member
Since: Jul 15, 2011
Posts: 6
Last: May 14, 2013
[view latest posts]
Level 0
Category: CoD4 MP Mapping
Posted: Sunday, Jan. 20, 2013 03:40 pm
ErikTheBorn writes...
Quote:
Hello! Im new to modding maps. its kinda fun when u get a hang of it [biggrin]. However i have multiplayer map wich i want to make a movable tank on. M1A1 Abraham to be exact. However the only thing is i dont know how to do it on multiplayer. it works in single player but not in multiplayer. Can someone tell me how to do it? anyway of porting the abillity of having moving vehicles in multiplayer? Please Help!

[machine_gun] [sniper]
YELLOW WINS! [[thumbs_up][biggrin] YAY! [wink]
........ [sad][cry]

edited on Jan. 19, 2013 07:19 am by ErikTheBorn


Hello, the animation wont be the same as singleplayer but the only possible way of getting it to work in multiplayer is by using a script_model. as far as i know the abraham has working constant rotating wheels so it doesnt look as nice.

1. spawn a script_model and select the xmodel you would like to use

2. give it a custom targetname value (key: targetname, value: [anything here]

3. add a clip_player barrier around the tank (how many you`d like, for now ive added two) then right click > script_brushmodel and give each one a separate targetname and value too.

4. create a trigger_multiple barrier where you`d want the tank to start moving (on spawn or when you walk through a door) and also give that a targetname and value.

5. create a map gsc, and add the following line (make sure to thread it):

Code:
tankmove()
{ 
tank3 = getent( "tankmove3", "targetname" ); //clip barriers
tank2 = getent( "tankmove2", "targetname" ); //clip barriers
tank1 = getent( "tankmove1", "targetname" ); //tank xmodel
trig = getent( "trigtank", "targetname" ); 

while(true) 
{ 
trig thread credits ();
trig waittill ("trigger"); 
//wait 4; 
tank1 movey ( 1000, 10, 0.5, 0.5); //tank xmodel
tank2 movey ( 1000, 10, 0.5, 0.5); //clip barriers
tank3 movey ( 1000, 10, 0.5, 0.5); //clip barriers
tank1 waittill ("movedone"); //tank xmodel
tank2 waittill ("movedone"); //clip barriers
tank3 waittill ("movedone"); //clip barriers
} 
}



NOTE: to find which direction you want the tank to go look in radiant, change Y in MOVEY to either X,Y or Z.

Hope this helped :)
Share |
ErikTheBorn
General Member
Since: Jan 19, 2013
Posts: 7
Last: Feb 10, 2013
[view latest posts]
Level 0
Category: CoD4 MP Mapping
Posted: Monday, Jan. 21, 2013 03:36 pm
Ok thnx man. thought no1 actually care for this. ok so its not that easy to make it act llike in real multiplayer. But what if i want to make the tank shoot enemies? like use its mg and use its turret to shoot the enemy team. I have rotu server wich i made a map hoping i can make a abraham tank support the "survivors" is that possible? to make the tank shoot like in single player and support?
Share |
Uk_viiper
General Member
Since: Jul 15, 2011
Posts: 6
Last: May 14, 2013
[view latest posts]
Level 0
Category: CoD4 MP Mapping
Posted: Sunday, Jan. 27, 2013 02:53 pm
ErikTheBorn writes...
Quote:
Ok thnx man. thought no1 actually care for this. ok so its not that easy to make it act llike in real multiplayer. But what if i want to make the tank shoot enemies? like use its mg and use its turret to shoot the enemy team. I have rotu server wich i made a map hoping i can make a abraham tank support the "survivors" is that possible? to make the tank shoot like in single player and support?


You could have a MG turret placed above the tank for players to use, but the bad thing is that you cant move turrets as far as i know of, you would need to place it at the location where the tank stops (maybe use a self.hide script and make it appear when the tank stops) other than that i dont think it would be possible to attach any weapon to a model and move it.
Share |
ErikTheBorn
General Member
Since: Jan 19, 2013
Posts: 7
Last: Feb 10, 2013
[view latest posts]
Level 0
Category: CoD4 MP Mapping
Posted: Saturday, Feb. 2, 2013 11:42 am
ok i tried adding every animscript and single player script in my iwd file for a mod. that would make me able to use tanks right?
Share |
Uk_viiper
General Member
Since: Jul 15, 2011
Posts: 6
Last: May 14, 2013
[view latest posts]
Level 0
Category: CoD4 MP Mapping
Posted: Tuesday, May. 14, 2013 07:09 pm
ErikTheBorn writes...
Quote:
ok i tried adding every animscript and single player script in my iwd file for a mod. that would make me able to use tanks right?


Sorry for a late reply, and i think so, i have not messed with singleplayer that much so it's worth a try :)
Share |
Josh.S
General Member
Since: May 27, 2012
Posts: 86
Last: Sep 16, 2014
[view latest posts]
Level 3
Category: CoD4 MP Mapping
Posted: Tuesday, May. 14, 2013 07:17 pm
You can link the turret to the tank ( it may only work for SP)
Share |
Restricted Access Topic is Locked 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

»