Change bomb model! (cstrike)
How would you change the bomb model? I mean the model when its planted, not the view model or the weaponmodel, i know how to do that :D
|
better yet... whats the entity name / classname of a planted / dropped bomb
|
it's a weaponbox containing a weapon_c4, like all other weapons in CS.
search for a weapon_c4, the owner will be the weaponbox whose model you need to change. I think that's how it works at least :) |
because of my noobness... how would you search all the entities if it contained a model? I only know how to get a entity string if the entity is specififed or like pfn_touch.
|
I think it's :
Code:
|
Actually a planted bomb is a "grenade". And its EV_SZ_model is "models/w_c4.mdl".
entity_set_model() probably works to change its model. Or you could try to hook FM_SetModel and when it says "models/m_c4.mdl", you just replace that with your new model. Probably a nice way to do it if you intend to change the model at all times. |
Or you can just run through the entities looking for the classname "weapon_c4" and once its found just change the model with entity_set_string().
|
Quote:
|
|
Code:
? |
| All times are GMT -4. The time now is 19:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.