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

Members Online

»
0 Active | 48 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 General
General game questions, comments, and chat.
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: CoD4 solid script_model spawned
Samuel033
General Member
Since: Dec 10, 2009
Posts: 484
Last: Dec 25, 2015
[view latest posts]
Level 5
Category: CoD4 General
Posted: Wednesday, Mar. 17, 2010 08:31 pm
Yes please tell us, its an issue I'm currently looking to solve. What is setContents? The reference guide doesnt say much.

Imagine a scripted homing frag grenade that follows an enemy that bounces down a staircase and off of walls. The current possible method rolling around in my head uses multiple physics traces would be a real pita to code.

I would truly love to see an enemy screaming "run away!!!"
Share |
tHMatt
General Member
Since: Sep 11, 2007
Posts: 473
Last: Mar 20, 2013
[view latest posts]
Level 5
Category: CoD4 General
Posted: Wednesday, Mar. 17, 2010 08:33 pm
it also works in cod2 with SetContents, major breakthru here...
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD4 General
Posted: Wednesday, Mar. 17, 2010 08:35 pm
[IBS]MattY writes...
Quote:
it also works in cod2 with SetContents, major breakthru here...


What stock models does it work with in COD2? Because I was trying using setContents() back in 2006-2007 and it never worked.

Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD4 General
Posted: Wednesday, Mar. 17, 2010 08:36 pm
Samuel033 writes...
Quote:
Yes please tell us, its an issue I'm currently looking to solve. What is setContents? The reference guide doesnt say much.

Imagine a scripted homing frag grenade that follows an enemy that bounces down a staircase and off of walls. The current possible method rolling around in my head uses multiple physics traces would be a real pita to code.

I would truly love to see an enemy screaming "run away!!!"


setContents() is an old Quake 3 engine function which was also in the vCOD/UO game engine. It was a method to bound a model with col maps. It was basically written out of the COD2 engine, and doesnt really work (I should know - Ive been trying to get solid models to dynamically spawn for years).
Share |
BraX
General Member
Since: Apr 29, 2008
Posts: 413
Last: May 26, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 General
Posted: Wednesday, Mar. 17, 2010 08:38 pm
DemonSeed writes...
Quote:
We've been through this before, but apparently you dont listen - you cannot make a solid model via the use of setContents(). IT DOESNT WORK!


Without setContents: http://www.xfire.com/video/24fb88/


edited on Mar. 17, 2010 04:39 pm by BraX
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD4 General
Posted: Wednesday, Mar. 17, 2010 08:40 pm
Show me that with a stock model from COD4.
Share |
techno2sl
General Member
Since: Aug 5, 2004
Posts: 2977
Last: Oct 14, 2010
[view latest posts]
Level 9
Category: CoD4 General
Posted: Wednesday, Mar. 17, 2010 08:42 pm
That was two different models :|
Share |
BraX
General Member
Since: Apr 29, 2008
Posts: 413
Last: May 26, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 General
Posted: Wednesday, Mar. 17, 2010 08:42 pm
DemonSeed writes...
Quote:
Show me that with a stock model from COD4.


Why i need to show that with stock model? You can try my method with stock HIGH COLLISION models.
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD4 General
Posted: Wednesday, Mar. 17, 2010 08:43 pm
As techno says - the model in the second video is different.

Im calling this bogus.
Share |
BraX
General Member
Since: Apr 29, 2008
Posts: 413
Last: May 26, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 General
Posted: Wednesday, Mar. 17, 2010 08:43 pm
techno2sl writes...
Quote:
That was two different models :|


Nah those arent diferent models

Code:
	self.turret_gun = spawn("script_model", self.origin + (0,0,33));
	self.turret_gun setmodel("bx_turret_weapon"); //our solid model
	self.turret_gun setContents(1);

	self.turret_bip = spawn("script_model", self.origin);
	self.turret_bip setmodel("bx_turret_bipod"); //this was hidden in video 1
	self.turret_bip setContents(0);
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 General

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

»