AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   view model on screen ? (https://forums.alliedmods.net/showthread.php?t=294704)

abdobiskra 03-05-2017 12:00

view model on screen ?
 
Hi
I am looking for a way to show the models on screen without replce weapons models
its possible ?

I experimented on this
PHP Code:

        set_pev(pev_viewmodelSCORE_MODEL)
        
set_pev(ipev_viewmodel2engfunc(EngFunc_AllocStringSCORE_MODEL)); 


Natsheh 03-05-2017 12:06

Re: view model on screen ?
 
The only way its by a motd which you need to have pictures for the mdl and do some html coding

abdobiskra 03-05-2017 12:12

Re: view model on screen ?
 
Quote:

Originally Posted by Natsheh (Post 2501039)
The only way its by a motd which you need to have pictures for the mdl and do some html coding

myb in CS but i mean in HL1 :> ops my mistak
btw the sprites not fixed in HL (client.dll) .. for that i want do it using models

georgik57 03-06-2017 02:44

Re: view model on screen ?
 
Quote:

Originally Posted by abdobiskra (Post 2501037)
PHP Code:

        set_pev(pev_viewmodelSCORE_MODEL)
        
set_pev(ipev_viewmodel2engfunc(EngFunc_AllocStringSCORE_MODEL)); 


That's also wrong. It should be the opposite.
PHP Code:

        set_pev(pev_viewmodelengfunc(EngFunc_AllocStringSCORE_MODEL))
        
set_pev(ipev_viewmodel2SCORE_MODEL); 

Also, they both do the same thing and AllocString should only be called once for optimization purpose.

abdobiskra 03-06-2017 05:56

Re: view model on screen ?
 
Quote:

Originally Posted by georgik57 (Post 2501173)
That's also wrong. It should be the opposite.
PHP Code:

        set_pev(pev_viewmodelengfunc(EngFunc_AllocStringSCORE_MODEL))
        
set_pev(ipev_viewmodel2SCORE_MODEL); 

Also, they both do the same thing and AllocString should only be called once for optimization purpose.

yes exactly
In order to move the mistake but that is not important in the subject


All times are GMT -4. The time now is 21:02.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.