Raised This Month: $51 Target: $400
 12% 

Scaling models in CS:GO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
peenut
Member
Join Date: Nov 2013
Old 04-23-2017 , 20:59   Scaling models in CS:GO
Reply With Quote #1

Hello! I'm having a hard time getting models to resize in CS:GO. Logically "m_flModelScale" would do it just find, but it seems that this isn't the case. Applying this to objects doesn't seem to do anything, except when i added glow with "m_bShouldGlow" i realized that something IS happening to the object, but i have no idea what.

I tried rearranging the code, adding the Prop_Send after spawning the model etc. But that didn't do anything different.



Have anyone had success with scaling models (prop_dynamic) in csgo?
Any reply is appreciated, thanks.

PHP Code:
public Action:spawnBeacon(client) {
    
findSpawnPoints();
    
int ent CreateEntityByName("prop_dynamic");

    
TeleportEntity(entbeaconPointNULL_VECTORNULL_VECTOR);
    
DispatchKeyValue(ent"model""models/props/crates/weapon_crate_a.mdl");
    
SetEntProp(entProp_Send"m_bShouldGlow"truetrue);
    
SetEntPropFloat(entProp_Send"m_flModelScale"10.0);
    
SetEntPropFloat(entProp_Send"m_flGlowMaxDist"1500.0);
    
SetGlowColor(ent"240 240 240");
    
DispatchSpawn(ent);
    
    
CreateTimer(10.0removeEntent);
    
TE_SetupBeamRingPoint(beaconPoint0.0400.0g_beamg_halo0110.05.01.0, {25500255}, 00);
    
TE_SendToAll();
    for (
int i 05; ++i) {
        
TE_SetupBeamRingPoint(beaconPoint399.0400.0g_beamg_halo0110.05.01.0, {255255255255}, 00);
        
TE_SendToAll();
        
beaconPoint[2] += 10;
    }
    
PrintToServer("Beacon added at: %0.0f, %0.0f, %0.0f"beaconPoint[0], beaconPoint[1], beaconPoint[2]);


Last edited by peenut; 04-23-2017 at 21:04.
peenut is offline
heroicpower7613
Member
Join Date: Nov 2016
Old 04-24-2017 , 00:16   Re: Scaling models in CS:GO
Reply With Quote #2

you posted in AMXX section, csgo isn't related here
heroicpower7613 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:43.


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