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(ent, beaconPoint, NULL_VECTOR, NULL_VECTOR);
DispatchKeyValue(ent, "model", "models/props/crates/weapon_crate_a.mdl");
SetEntProp(ent, Prop_Send, "m_bShouldGlow", true, true);
SetEntPropFloat(ent, Prop_Send, "m_flModelScale", 10.0);
SetEntPropFloat(ent, Prop_Send, "m_flGlowMaxDist", 1500.0);
SetGlowColor(ent, "240 240 240");
DispatchSpawn(ent);
CreateTimer(10.0, removeEnt, ent);
TE_SetupBeamRingPoint(beaconPoint, 0.0, 400.0, g_beam, g_halo, 0, 1, 10.0, 5.0, 1.0, {255, 0, 0, 255}, 0, 0);
TE_SendToAll();
for (int i = 0; i < 5; ++i) {
TE_SetupBeamRingPoint(beaconPoint, 399.0, 400.0, g_beam, g_halo, 0, 1, 10.0, 5.0, 1.0, {255, 255, 255, 255}, 0, 0);
TE_SendToAll();
beaconPoint[2] += 10;
}
PrintToServer("Beacon added at: %0.0f, %0.0f, %0.0f", beaconPoint[0], beaconPoint[1], beaconPoint[2]);
}