This site is a testing version, but all data is shared with the live forum.


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

Weapons For MMO Game


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
padilha007
Senior Member
Join Date: Jul 2008
Old 11-25-2012 , 14:59   Weapons For MMO Game
Reply With Quote #1

I'm making a FPS MMO game, and I'm in doubt as I do the script to save the player's weapons (Knowing that he can save it in a global inventory or remove it to use).

I wonder how it is done in cs 1.6, I know that the client asks to shoot and the server sends the response by computing the location of a hit and sending to all customers. But as is "done" to save the player's weapons? Array, List, A single variable to store the variables of the current weapon?

Piece of coce ( Server Side ):
PHP Code:
    public class WeaponStatusInfo
    
{
        public 
bool bWeaponStuck false;
        
        public 
int iWeaponBpAmmo 0;
        
        public 
int iWeaponClipAmmo 0;
        
        private 
float fWeaponNextFire 0f;
    
        private 
float fWeaponFiredTime 0f;
    } 
Piece of code ( My Sql ):
PHP Code:
    [System.Serializable]
    public class 
WeaponPersonalInfo
    
{
        public 
string szWeaponName "Null";
        
        public 
float fWeaponReloadTime 1.5f;
        
        public 
int iWeaponShootMode 0;
        
// 0 - shot per shot
        // 1 - Semi
        // 2 - Automatic
        
        
public bool bWeaponZoom false;
        
        public 
int iMaxClipammo 0;
        
        public 
int iMaxBpAmmo 0;
    } 

Thank you.
__________________


Last edited by padilha007; 11-25-2012 at 15:10.
padilha007 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-25-2012 , 15:05   Re: Weapons For MMO Game
Reply With Quote #2

Ask the developers of the game, not us.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 11-25-2012 , 15:11   Re: Weapons For MMO Game
Reply With Quote #3

@ YamiKaitou

I'm here to learn more ways to do this, I'm not asking for the code or make the game for me.
__________________

padilha007 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-25-2012 , 15:24   Re: Weapons For MMO Game
Reply With Quote #4

Quote:
Originally Posted by padilha007 View Post
@ YamiKaitou

I'm here to learn more ways to do this, I'm not asking for the code or make the game for me.
He never implied that you were asking for code. He just said you need to ask the right people.
__________________
fysiks is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 11-25-2012 , 16:36   Re: Weapons For MMO Game
Reply With Quote #5

Ops got it wrong, sorry. I came especially for this forum because there are many mods to manage secondary weapons. But I appreciate the speed of their responses, I will look elsewhere.
__________________

padilha007 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 06:34.


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