Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Make a Model Solid
#11
Code:
for(;;)
            {
                self waittill("weapon_fired");
                forward = self getTagOrigin("tag_eye");
                end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
                location = BulletTrace( forward, end, 0, self )[ "position" ];
                crate = spawn( "script_model", location+(0,0,500) );
                crate setModel(level.carepackage);
                crate solid();
                crate PhysicsLaunch( (0,0,0), (0,0,-2000));
                crate.angles = self.angles+(0,90,0);
            }

From RTD2. enjoy
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#12
If I use this with another model, will players still be not able to pass through it?
Reply

#13
(07-26-2011, 21:12)AZUMIKKEL Wrote:
Code:
for(;;)
            {
                self waittill("weapon_fired");
                forward = self getTagOrigin("tag_eye");
                end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
                location = BulletTrace( forward, end, 0, self )[ "position" ];
                crate = spawn( "script_model", location+(0,0,500) );
                crate setModel(level.carepackage);
                crate solid();
                crate PhysicsLaunch( (0,0,0), (0,0,-2000));
                crate.angles = self.angles+(0,90,0);
            }

From RTD2. enjoy

thats carepackages :S does it work with any other model even those who dont have collision?
Reply

#14
(07-26-2011, 22:52)Scripts18 Wrote:
(07-26-2011, 21:12)AZUMIKKEL Wrote:
Code:
for(;;)
            {
                self waittill("weapon_fired");
                forward = self getTagOrigin("tag_eye");
                end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
                location = BulletTrace( forward, end, 0, self )[ "position" ];
                crate = spawn( "script_model", location+(0,0,500) );
                crate setModel(level.carepackage);
                crate solid();
                crate PhysicsLaunch( (0,0,0), (0,0,-2000));
                crate.angles = self.angles+(0,90,0);
            }

From RTD2. enjoy

thats carepackages :S does it work with any other model even those who dont have collision?

Just change
Code:
crate setModel(level.carepackage)
the "level.carepackage" and you have it for a different model?
Reply

#15
Just checked and thats the code Im using already (but a bit different)
Reply

#16
Solid() only works on specifical models, and not all models.
Is there some way we can calculate the needed collbox for the model?
Reply

#17
script_brushmodel is used with the Solid() function in COD7.

You would need to use a brush model, or use a collision model as a
script_brushmodel and LinkTo( YourModel ) for collision to occur on
any unspecific model.

I haven't found another way to do it yet, but this seems to work nicely.
Reply

#18
yes, it is perfect, i made door system by linking collisions to them Awesome
[Image: lQDUjba.jpg]
Reply

#19
For some models such as carepackages using model solid(); is not required. In fact, it can make the carepackage not solid (if you try to walk through it for a second). Anyway, you should only be using the solid command for brushmodels.
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Make area detect. flag Teleport lewisbibo 4 4,989 10-12-2013, 18:10
Last Post: EnVi Sweden Rocks
Wink Make Platforme lewisbibo 5 4,990 10-08-2013, 14:35
Last Post: 8q4s8
  Make obj MW3.by lewisbibo lewisbibo 3 3,700 10-05-2013, 20:16
Last Post: Nekochan
  Make obj MW3.by lewisbibo lewisbibo 0 2,332 10-03-2013, 20:19
Last Post: lewisbibo
  Spawning Solid Models akillj 5 4,406 09-08-2013, 00:07
Last Post: akillj
  Help need help?how to make plugins code hXnarutoXone 12 8,544 09-01-2013, 18:30
Last Post: Bandarigoda123
  Zombie model imchasinyou 7 6,785 07-31-2013, 01:11
Last Post: rotceh_dnih
  Help Make ac130 shoot custom bullets Ra3shed 0 2,729 07-23-2013, 13:02
Last Post: Ra3shed
  how to make a plugin (mod) E-losev 5 4,330 07-12-2013, 15:48
Last Post: OzonE
  List of models that can be spawned? (Looking for C4 model) akillj 5 4,799 06-27-2013, 13:35
Last Post: Yamato

Forum Jump:


Users browsing this thread:
3 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.