Post: last question about weapons
09-27-2015, 08:06 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Sorry to keep asking but its the final thing i need for what im and making.

I found these dvars on managed code thread:

public static UInt32 g_maxDroppedWeapons = 0x1CA4F20 + 0x18;

public static UInt32 scr_weaponobject_radius = 0x1C****0 + 0x18;

public static UInt32 scr_weaponobject_mindist = 0x1CE6DA0 + 0x18;

How would i setup these?

I want it so i can change the max amount of dropped weapons that are allowed (if u spawn in like more then 5 they start disappearing. Also i want to change the radius on the weapon pickup, so that you have to be closer to the gun before it says "press square to pickup".

I believe these are the correct dvars to use, but i don't know what format to use with them in order to get them to work. I was hoping someone who knew more about this then me might know how to do this.
Would Help Heaps Smile
(adsbygoogle = window.adsbygoogle || []).push({});
09-27-2015, 08:42 AM #2
ProcyonXL
Do a barrel roll!
setDvar("player_useRadius",300);

you can mess with the range if you want.
09-27-2015, 09:26 AM #3
thanks man, it works, but still gotta figure out how to set max amount of weapons that can be dropped
09-27-2015, 09:41 AM #4
ProcyonXL
Do a barrel roll!
try this

setDvar("g_maxDroppedWeapons", 30);

i have no idea if it works but... it's worth a shot.
09-27-2015, 01:20 PM #5
i tried that, i have been able to get 10 weapons in so far without them disapearing so i think its working Smile thanks man
09-27-2015, 01:44 PM #6
edit read bellow
09-27-2015, 02:24 PM #7
edit- actuallt my bad it doesn't work at all i thought it was working but i got rid of it and it was the same, i can only have a maximum of 12 guns spawned in
the setDvar("g_maxDroppedWeapons", 30); does not work
09-27-2015, 06:30 PM #8
Instead of dropping guns why not set up magic boxes and hv then spawn hv then just activated random so it won't be the same place and ppl know we're it be located plus u get all the wespons
09-27-2015, 06:46 PM #9
Originally posted by OfficialCoolJay View Post
Sorry to keep asking but its the final thing i need for what im and making.

I found these dvars on managed code thread:

public static UInt32 g_maxDroppedWeapons = 0x1CA4F20 + 0x18;

public static UInt32 scr_weaponobject_radius = 0x1C****0 + 0x18;

public static UInt32 scr_weaponobject_mindist = 0x1CE6DA0 + 0x18;

How would i setup these?

I want it so i can change the max amount of dropped weapons that are allowed (if u spawn in like more then 5 they start disappearing. Also i want to change the radius on the weapon pickup, so that you have to be closer to the gun before it says "press square to pickup".

I believe these are the correct dvars to use, but i don't know what format to use with them in order to get them to work. I was hoping someone who knew more about this then me might know how to do this.
Would Help Heaps Smile


Did you really find those dvar addresses in one of the managed code lists? They have nothing to do with script modding, you'd use those addresses for memory editing
09-28-2015, 01:54 AM #10
i don't wanna spoil what im creating, and yes i found them in the managed code lists. i so far can spawn in 12 weapons and they are perfect what when i try to spawn in anymore they don't spawn in cause i reach the weapon limit :(
i thought about doing a setup where it spawns the model for the gun and when you are near the model you press square and it gives you the weapon and deletes the model after you are given the weapon, but thats a lot longer process to do
which i will do as a last resort but would be easier if i could just figure out how to change the weapon drop limit, on top of that im not to familiar on how to setup a hint and it radius on a model so it says "press square to pickup"

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo