UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Help with weapon (SP)

broken avatar :(
Created 9 years ago
by artsergo
0 Members and 1 Guest are viewing this topic.
1,371 views
broken avatar :(
×
broken avatar :(
Location: rusiberia
Date Registered: 3 January 2017
Last active: 9 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Goodluck for all !
Signature
Believe in your strength, anytime, anywhere!
Only you can force yourself to change something in your life!
But In general, the world itself is beautiful if  you be optimist :)
×
artsergo's Groups
artsergo's Contact & Social Linksartsibsergeiartsergoartsergo

hi!   :)

We have ppsh script_model and this ppsh ammo is empty
how i can make, if script_model weapon ammo is empty, I go to the ammo-box and get full ammo)

example for SP, make it for weapon respawning is count 3 and no more


Thanks.
broken avatar :(
×
broken avatar :(
Location: rusiberia
Date Registered: 3 January 2017
Last active: 9 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Goodluck for all !
×
artsergo's Groups
artsergo's Contact & Social Linksartsibsergeiartsergoartsergo


 anybody have idea how this make?  ::)
broken avatar :(
×
broken avatar :(
Location: rusiberia
Date Registered: 3 January 2017
Last active: 9 years ago
Posts
78
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Goodluck for all !
×
artsergo's Groups
artsergo's Contact & Social Linksartsibsergeiartsergoartsergo
 
 Anybody know,  this right?    :)


Code Snippet
Plaintext
   
           init_weapon_upgrade()
              {
         weapon_spawns = [];
         weapon_spawns = GetEntArray( "weapon_upgrade", "targetname" );

        for( i = 0; i < weapon_spawns.size; i++ )
              {
            hint_string = get_weapon_hint( weapon_spawns[i].weapon_upgrade );

            weapon_spawns[i] SetHintString( hint_string );
            weapon_spawns[i] setCursorHint( "HINT_NOICON" );
            weapon_spawns[i] UseTriggerRequireLookAt();

            weapon_spawns[i] thread weapon_spawn_think();
           model = getent( weapon_spawns[i].target, "targetname" );
           model hide();
               }
               }
     ::)


 
Loading ...