UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

problem when moving a model

broken avatar :(
Created 10 years ago
by gamer9294
0 Members and 1 Guest are viewing this topic.
3,578 views
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 22 September 2013
Last active: 6 months ago
Posts
326
Respect
Forum Rank
Perk Hacker
Primary Group
Mapper
My Groups
More
Personal Quote
Zombie Mapper and Gamer
Signature
My Custom Zombie Maps:

- Nazi zombie Legion
- City of Hell
- The Abandoned Mine
- The Last Undead House (Finished)

more custom zombie maps coming soon
×
gamer9294's Groups
Mapper Has released one or more maps to the UGX-Mods community.
gamer9294's Contact & Social Links
Hello guys,

I have a question ?

if some one can help me with this problem.


I'm trying to get a model working that is falling out of the sky and it works now the problem is that the model is going through walls and floors ? it will not blocking or have a little bounce effect on it but it is still falling down to no where :(


I have tried multiple times with different functions:

* movegravity()
- works but model is going through the floors or walls, all the brushes (also tried with Solid() function) but not working.

* moveto()
- same as movegravity function it will going through the walls and floors to the end target of the vector (x,y,z)

* launch()
- not working,  unkown function error in codwaw ? this is what I have on the launch code:
ent = model
marked_position = location where it needs to go, it has: (x, y, z)
Code Snippet
Plaintext
ent launch((marked_position));
Code Snippet
Plaintext
ent launch(marked_position);
but the both does not work, I get the same message.

* PhysicsLaunch()
- this works as well as the movegravity function but when I used this function my models that is falling down are dissappeared but they don't going through the floors and walls that I want :)
in the console it says:

Failed to create Physic model 'model_name' .

but after I created a physic file and a phys_collmap, I get still the error and the model is still dissappeared. :(

and the strange thing is that custom model imported from another cod game does well work with the PhysicsLaunch function and the custom model doesn't have a physic and phys_collmap, but when I'm trying to use a world at war model then I get the console message with that it failed to create.

also is PhysicsLaunch function required in a level thread instead of thread ?


example:

I want that if I'm into a building and the model is falling down, it most not possible that the model is going through the building.



I hope that any one can help me with this problem that will be very great :)


best regards,
Gamer9294
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2012
Last active: 2 years ago
Posts
577
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
My preferred name is "xSanchez78".
Check me out here: www.steamcommunity.com/id/xSanchez78
×
alaurenc9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
alaurenc9's Contact & Social LinksxSanchez78xSanchez78xSanchez78xSanchez78xSanchez78xSanchez78
Why would you not just use MoveTo and make the end position be where you want it to land? Or use MoveGravity and set the amount of time it moves to the amount of time it will take the model to fall down where you want it to fall with the velocity you enter?
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 22 September 2013
Last active: 6 months ago
Posts
326
Respect
Forum Rank
Perk Hacker
Primary Group
Mapper
My Groups
More
Personal Quote
Zombie Mapper and Gamer
×
gamer9294's Groups
Mapper Has released one or more maps to the UGX-Mods community.
gamer9294's Contact & Social Links
Why would you not just use MoveTo and make the end position be where you want it to land? Or use MoveGravity and set the amount of time it moves to the amount of time it will take the model to fall down where you want it to fall with the velocity you enter?

thank you for the comment. ;)

I hope that it is  so easy  :( but not,  what I mean is that if I throw a smoke grenade into a house (kinda of marker grenade to bring something to the smoke grenade) then the position will be into the house but then when the model is falling down it is going through the house :(

the only problem is that by MoveGravity that the model is going through all surface type of brushes and patches.


and I don't want models going through houses or other things :)


sorry for my bad english.



best regards,
Gamer9294
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2012
Last active: 2 years ago
Posts
577
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
alaurenc9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
alaurenc9's Contact & Social LinksxSanchez78xSanchez78xSanchez78xSanchez78xSanchez78xSanchez78
If you want it to just move in an arch like it is a "throw", you can get an end origin and check out the function "fake_physicslaunch" in _zombiemode_utility. If you want it to bounce, I would consider using a weapon file or something else because yes you can script it but it would take a while to script the physics perfectly.
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 22 September 2013
Last active: 6 months ago
Posts
326
Respect
Forum Rank
Perk Hacker
Primary Group
Mapper
My Groups
More
Personal Quote
Zombie Mapper and Gamer
×
gamer9294's Groups
Mapper Has released one or more maps to the UGX-Mods community.
gamer9294's Contact & Social Links
Pretty sure that launch( x,y,z ); is dependent on a velocity not an origin. Thats all I can help with though haha

okay how does that work velocity ?



Quote
If you want it to just move in an arch like it is a "throw", you can get an end origin and check out the function "fake_physicslaunch" in _zombiemode_utility. If you want it to bounce, I would consider using a weapon file or something else because yes you can script it but it would take a while to script the physics perfectly.

okay yeah I have earlier tested with a weapon file but,  with the weapon thing is it also going through the ground and houses etc :(

but I use now triggers to check if the model is touching one of the triggers.

and it works fine.


best regards,
Gamer9294
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2012
Last active: 2 years ago
Posts
577
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
alaurenc9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
alaurenc9's Contact & Social LinksxSanchez78xSanchez78xSanchez78xSanchez78xSanchez78xSanchez78
okay yeah I have earlier tested with a weapon file but,  with the weapon thing is it also going through the ground and houses etc :(
Wait with a weapon file it STILL goes through the floor? Well that means that your house has no collisions or anything which I don't see how exactly that is possible. Can I see the script?
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 22 September 2013
Last active: 6 months ago
Posts
326
Respect
Forum Rank
Perk Hacker
Primary Group
Mapper
My Groups
More
Personal Quote
Zombie Mapper and Gamer
×
gamer9294's Groups
Mapper Has released one or more maps to the UGX-Mods community.
gamer9294's Contact & Social Links
Wait with a weapon file it STILL goes through the floor? Well that means that your house has no collisions or anything which I don't see how exactly that is possible. Can I see the script?

sorry for a late reply, I have tried few more times and now it seems to work with the weapon file.

exactly what my fault is that I don't have setup the weapon file correct and I used a script to throw the model xD
but now I use the weapon file to throw it and locate the model then.

thank you for commenting back.

I have a question if I get a problem can I ask you for help if that is possible and when you have time then of course :)


thank you guys for helping me. ;)

best regards,
Gamer9294
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2012
Last active: 2 years ago
Posts
577
Respect
Forum Rank
Zombie Enslaver
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
alaurenc9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
alaurenc9's Contact & Social LinksxSanchez78xSanchez78xSanchez78xSanchez78xSanchez78xSanchez78
sorry for a late reply, I have tried few more times and now it seems to work with the weapon file.

exactly what my fault is that I don't have setup the weapon file correct and I used a script to throw the model xD
but now I use the weapon file to throw it and locate the model then.

thank you for commenting back.

I have a question if I get a problem can I ask you for help if that is possible and when you have time then of course :)


thank you guys for helping me. ;)

best regards,
Gamer9294
sure just PM me I guess.

 
Loading ...