DispatchClass
Hello, I wonder if it's possible to "implement" a class on a dummy entity (info_target).
Code:
|
Re: DispatchClass
I think, internally it remains as "info_target" class. As far as you already have an entity index, it already has some classs.
|
Re: DispatchClass
Why not create an entity that's linked to CBasePlayerWeapon instead of "info_target" in the first place?
|
Re: DispatchClass
I noticed that it inherits CBasePlayerItem/CBasePlayerWeapon members, but not the functions. Anyway, probably this would be useless, I was thinking to "hack" info_target entity and make custom weapons from it.
Somehow it's possible if you remove default CS weapons and work with a amxx "recoded" version of weapons.cpp: Code:
But, many lines would have to be made and probably would be required orpheu or reapi to work with ApplyMultiDamage, AddMultiDamage, FireBullets3, etc. It's a idea to think about, since the only method that developers know and have nowadays it's "override" weapons. I'm not sure what're the good and bad points of my idea. If anyone wants to comment, feel free. |
| All times are GMT -4. The time now is 07:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.